Home / Function/ testWriteUsAsciiCompositeWrapped() — netty Function Reference

testWriteUsAsciiCompositeWrapped() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 446–463

    @ParameterizedTest(name = PARAMETERIZED_NAME)
    @MethodSource("noUnsafe")
    public void testWriteUsAsciiCompositeWrapped(BufferType bufferType) {
        String usAscii = "NettyRocks";
        ByteBuf buf = buffer(bufferType, 16);
        buf.writeBytes(usAscii.getBytes(CharsetUtil.US_ASCII));
        ByteBuf buf2 = new WrappedCompositeByteBuf(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 testWriteUsAsciiCompositeWrapped() do?
testWriteUsAsciiCompositeWrapped() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testWriteUsAsciiCompositeWrapped() defined?
testWriteUsAsciiCompositeWrapped() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 446.

Analyze Your Own Codebase

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

Try Supermodel Free