testSetBytesWithChannel() — netty Function Reference
Architecture documentation for the testSetBytesWithChannel() function in FixedCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c10a5c83_0706_323c_345a_19d5ae245665["testSetBytesWithChannel()"] 0580ab1c_4068_2dfc_70ec_23a7d5440016["FixedCompositeByteBufTest"] c10a5c83_0706_323c_345a_19d5ae245665 -->|defined in| 0580ab1c_4068_2dfc_70ec_23a7d5440016 style c10a5c83_0706_323c_345a_19d5ae245665 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java lines 121–158
@Test
public void testSetBytesWithChannel() {
final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
try {
assertThrows(ReadOnlyBufferException.class, new Executable() {
@Override
public void execute() throws IOException {
buf.setBytes(0, new ScatteringByteChannel() {
@Override
public long read(ByteBuffer[] dsts, int offset, int length) {
return 0;
}
@Override
public long read(ByteBuffer[] dsts) {
return 0;
}
@Override
public int read(ByteBuffer dst) {
return 0;
}
@Override
public boolean isOpen() {
return true;
}
@Override
public void close() {
}
}, 4);
}
});
} finally {
buf.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSetBytesWithChannel() do?
testSetBytesWithChannel() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java.
Where is testSetBytesWithChannel() defined?
testSetBytesWithChannel() is defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java at line 121.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free