testReadOnlyOfReadOnly() — netty Function Reference
Architecture documentation for the testReadOnlyOfReadOnly() function in ByteBufDerivationTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD acfb67cb_0726_cda1_636c_fc59742e04d7["testReadOnlyOfReadOnly()"] fd4020ab_f8d0_a065_dc31_0331d0318aa5["ByteBufDerivationTest"] acfb67cb_0726_cda1_636c_fc59742e04d7 -->|defined in| fd4020ab_f8d0_a065_dc31_0331d0318aa5 style acfb67cb_0726_cda1_636c_fc59742e04d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufDerivationTest.java lines 113–126
@Test
public void testReadOnlyOfReadOnly() throws Exception {
ByteBuf buf = Unpooled.buffer(8).setIndex(1, 7);
ByteBuf ro = Unpooled.unmodifiableBuffer(buf).setIndex(2, 6);
ByteBuf ro2 = Unpooled.unmodifiableBuffer(ro);
assertNotSame(ro, ro2);
assertInstanceOf(ReadOnlyByteBuf.class, ro2);
assertSame(buf, ro2.unwrap());
assertEquals(ro.readerIndex(), ro2.readerIndex());
assertEquals(ro.writerIndex(), ro2.writerIndex());
assertEquals(ro.capacity(), ro2.capacity());
assertEquals(ro.maxCapacity(), ro2.maxCapacity());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testReadOnlyOfReadOnly() do?
testReadOnlyOfReadOnly() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufDerivationTest.java.
Where is testReadOnlyOfReadOnly() defined?
testReadOnlyOfReadOnly() is defined in buffer/src/test/java/io/netty/buffer/ByteBufDerivationTest.java at line 113.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free