Home / Function/ testWriteUsAsciiComposite() — netty Function Reference

testWriteUsAsciiComposite() — netty Function Reference

Architecture documentation for the testWriteUsAsciiComposite() function in ByteBufUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  001d3f24_2b66_a237_a6d5_4eefc2b73949["testWriteUsAsciiComposite()"]
  1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"]
  001d3f24_2b66_a237_a6d5_4eefc2b73949 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7
  style 001d3f24_2b66_a237_a6d5_4eefc2b73949 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 427–444

    @ParameterizedTest(name = PARAMETERIZED_NAME)
    @MethodSource("noUnsafe")
    public void testWriteUsAsciiComposite(BufferType bufferType) {
        String usAscii = "NettyRocks";
        ByteBuf buf = buffer(bufferType, 16);
        buf.writeBytes(usAscii.getBytes(CharsetUtil.US_ASCII));
        ByteBuf buf2 = compositeByteBuf(bufferType).addComponent(
                buffer(bufferType, 8)).addComponent(buffer(bufferType, 24));
        // write some byte so we start writing with an offset.
        buf2.writeByte(1);
        ByteBufUtil.writeAscii(buf2, usAscii);

        // Skip the previously written byte.
        assertEquals(buf, buf2.skipBytes(1));

        buf.release();
        buf2.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testWriteUsAsciiComposite() do?
testWriteUsAsciiComposite() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testWriteUsAsciiComposite() defined?
testWriteUsAsciiComposite() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 427.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free