testWriteUtf8CompositeWrapped() — netty Function Reference
Architecture documentation for the testWriteUtf8CompositeWrapped() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 96cef6f7_dfc1_9239_fdcb_300a4fefa2fe["testWriteUtf8CompositeWrapped()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] 96cef6f7_dfc1_9239_fdcb_300a4fefa2fe -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 style 96cef6f7_dfc1_9239_fdcb_300a4fefa2fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 499–516
@ParameterizedTest(name = PARAMETERIZED_NAME)
@MethodSource("noUnsafe")
public void testWriteUtf8CompositeWrapped(BufferType bufferType) {
String utf8 = "Some UTF-8 like äÄ∏ŒŒ";
ByteBuf buf = buffer(bufferType, 16);
buf.writeBytes(utf8.getBytes(CharsetUtil.UTF_8));
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.writeUtf8(buf2, utf8);
// Skip the previously written byte.
assertEquals(buf, buf2.skipBytes(1));
buf.release();
buf2.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWriteUtf8CompositeWrapped() do?
testWriteUtf8CompositeWrapped() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testWriteUtf8CompositeWrapped() defined?
testWriteUtf8CompositeWrapped() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 499.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free