testWriteUsAsciiSwapped() — netty Function Reference
Architecture documentation for the testWriteUsAsciiSwapped() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a34cf4df_8615_2195_4589_ce6295beef63["testWriteUsAsciiSwapped()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] a34cf4df_8615_2195_4589_ce6295beef63 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 style a34cf4df_8615_2195_4589_ce6295beef63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 395–408
@ParameterizedTest(name = PARAMETERIZED_NAME)
@MethodSource("noUnsafe")
public void testWriteUsAsciiSwapped(BufferType bufferType) {
String usAscii = "NettyRocks";
ByteBuf buf = buffer(bufferType, 16);
buf.writeBytes(usAscii.getBytes(CharsetUtil.US_ASCII));
SwappedByteBuf buf2 = new SwappedByteBuf(buffer(bufferType, 16));
ByteBufUtil.writeAscii(buf2, usAscii);
assertEquals(buf, buf2);
buf.release();
buf2.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWriteUsAsciiSwapped() do?
testWriteUsAsciiSwapped() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testWriteUsAsciiSwapped() defined?
testWriteUsAsciiSwapped() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 395.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free