testGetBytesByteBuffer() — netty Function Reference
Architecture documentation for the testGetBytesByteBuffer() function in AbstractByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d397c236_60cf_27d6_1fd0_f0d8c7d92ced["testGetBytesByteBuffer()"] 6540f2d1_cdad_6705_dd1d_9a24e2e53242["AbstractByteBufTest"] d397c236_60cf_27d6_1fd0_f0d8c7d92ced -->|defined in| 6540f2d1_cdad_6705_dd1d_9a24e2e53242 style d397c236_60cf_27d6_1fd0_f0d8c7d92ced fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java lines 5961–5978
@Test
public void testGetBytesByteBuffer() {
byte[] bytes = {'a', 'b', 'c', 'd', 'e', 'f', 'g'};
// Ensure destination buffer is bigger then what is in the ByteBuf.
final ByteBuffer nioBuffer = ByteBuffer.allocate(bytes.length + 1);
final ByteBuf buffer = newBuffer(bytes.length);
try {
buffer.writeBytes(bytes);
assertThrows(IndexOutOfBoundsException.class, new Executable() {
@Override
public void execute() {
buffer.getBytes(buffer.readerIndex(), nioBuffer);
}
});
} finally {
buffer.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/AbstractByteBufTest.java.
Where is testGetBytesByteBuffer() defined?
testGetBytesByteBuffer() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java at line 5961.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free