Home / Function/ testSliceOfSlice() — netty Function Reference

testSliceOfSlice() — netty Function Reference

Architecture documentation for the testSliceOfSlice() function in ByteBufDerivationTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  efe0f2df_cd21_6e2d_a401_497216bf7790["testSliceOfSlice()"]
  fd4020ab_f8d0_a065_dc31_0331d0318aa5["ByteBufDerivationTest"]
  efe0f2df_cd21_6e2d_a401_497216bf7790 -->|defined in| fd4020ab_f8d0_a065_dc31_0331d0318aa5
  style efe0f2df_cd21_6e2d_a401_497216bf7790 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufDerivationTest.java lines 52–63

    @Test
    public void testSliceOfSlice() throws Exception {
        ByteBuf buf = Unpooled.buffer(8);
        ByteBuf slice = buf.slice(1, 7);
        ByteBuf slice2 = slice.slice(0, 6);

        assertNotSame(slice, slice2);
        assertInstanceOf(AbstractUnpooledSlicedByteBuf.class, slice2);
        assertSame(buf, slice2.unwrap());
        assertEquals(6, slice2.writerIndex());
        assertEquals(6, slice2.capacity());
    }

Domain

Subdomains

Frequently Asked Questions

What does testSliceOfSlice() do?
testSliceOfSlice() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufDerivationTest.java.
Where is testSliceOfSlice() defined?
testSliceOfSlice() is defined in buffer/src/test/java/io/netty/buffer/ByteBufDerivationTest.java at line 52.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free