testGetBytesByteBuffer() — netty Function Reference
Architecture documentation for the testGetBytesByteBuffer() function in UnpooledTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a998e963_1b06_58f6_3ee0_701aa5f0287b["testGetBytesByteBuffer()"] 57588d83_f329_0d85_cfc5_eea9b8d43e8f["UnpooledTest"] a998e963_1b06_58f6_3ee0_701aa5f0287b -->|defined in| 57588d83_f329_0d85_cfc5_eea9b8d43e8f style a998e963_1b06_58f6_3ee0_701aa5f0287b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/UnpooledTest.java lines 737–753
@Test
public void testGetBytesByteBuffer() {
byte[] bytes = {'a', 'b', 'c', 'd', 'e', 'f', 'g'};
// Ensure destination buffer is bigger then what is wrapped in the ByteBuf.
final ByteBuffer nioBuffer = ByteBuffer.allocate(bytes.length + 1);
final ByteBuf wrappedBuffer = wrappedBuffer(bytes);
try {
assertThrows(IndexOutOfBoundsException.class, new Executable() {
@Override
public void execute() throws Throwable {
wrappedBuffer.getBytes(wrappedBuffer.readerIndex(), nioBuffer);
}
});
} finally {
wrappedBuffer.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGetBytesByteBuffer() do?
testGetBytesByteBuffer() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/UnpooledTest.java.
Where is testGetBytesByteBuffer() defined?
testGetBytesByteBuffer() is defined in buffer/src/test/java/io/netty/buffer/UnpooledTest.java at line 737.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free