Home / Function/ testWriteUsAscii() — netty Function Reference

testWriteUsAscii() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 380–393

    @ParameterizedTest(name = PARAMETERIZED_NAME)
    @MethodSource("noUnsafe")
    public void testWriteUsAscii(BufferType bufferType) {
        String usAscii = "NettyRocks";
        ByteBuf buf = buffer(bufferType, 16);
        buf.writeBytes(usAscii.getBytes(CharsetUtil.US_ASCII));
        ByteBuf buf2 = buffer(bufferType, 16);
        ByteBufUtil.writeAscii(buf2, usAscii);

        assertEquals(buf, buf2);

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free