testReserveAndWriteUtf8Subsequence() — netty Function Reference
Architecture documentation for the testReserveAndWriteUtf8Subsequence() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 41a37cd7_5d76_62d9_8c0f_abc08287ba69["testReserveAndWriteUtf8Subsequence()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] 41a37cd7_5d76_62d9_8c0f_abc08287ba69 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 style 41a37cd7_5d76_62d9_8c0f_abc08287ba69 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 745–759
@ParameterizedTest(name = PARAMETERIZED_NAME)
@MethodSource("noUnsafe")
public void testReserveAndWriteUtf8Subsequence(BufferType bufferType) {
String usAscii = "Some UTF-8 like äÄ∏ŒŒ";
ByteBuf buf = buffer(bufferType, 16);
buf.writeBytes(usAscii.substring(5, 18).getBytes(CharsetUtil.UTF_8));
ByteBuf buf2 = buffer(bufferType, 16);
int count = ByteBufUtil.reserveAndWriteUtf8(buf2, usAscii, 5, 18, 16);
assertEquals(buf, buf2);
assertEquals(buf.readableBytes(), count);
buf.release();
buf2.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testReserveAndWriteUtf8Subsequence() do?
testReserveAndWriteUtf8Subsequence() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testReserveAndWriteUtf8Subsequence() defined?
testReserveAndWriteUtf8Subsequence() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 745.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free