Home / Class/ BigEndianDirectByteBufTest Class — netty Architecture

BigEndianDirectByteBufTest Class — netty Architecture

Architecture documentation for the BigEndianDirectByteBufTest class in BigEndianDirectByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  286caef4_de69_a553_18cf_b948e850532e["BigEndianDirectByteBufTest"]
  a6536d6a_ce09_2b52_3b36_159f5a2d0a21["BigEndianDirectByteBufTest.java"]
  286caef4_de69_a553_18cf_b948e850532e -->|defined in| a6536d6a_ce09_2b52_3b36_159f5a2d0a21
  72cc5b2a_7f83_e473_8da5_047f304d48d9["ByteBuf()"]
  286caef4_de69_a553_18cf_b948e850532e -->|method| 72cc5b2a_7f83_e473_8da5_047f304d48d9
  dc0c7143_148c_8249_ebdd_96b1574e4cb6["testIsContiguous()"]
  286caef4_de69_a553_18cf_b948e850532e -->|method| dc0c7143_148c_8249_ebdd_96b1574e4cb6

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/BigEndianDirectByteBufTest.java lines 29–49

public class BigEndianDirectByteBufTest extends AbstractByteBufTest {

    @Override
    protected ByteBuf newBuffer(int length, int maxCapacity) {
        ByteBuf buffer = newDirectBuffer(length, maxCapacity);
        assertSame(ByteOrder.BIG_ENDIAN, buffer.order());
        assertEquals(0, buffer.writerIndex());
        return buffer;
    }

    protected ByteBuf newDirectBuffer(int length, int maxCapacity) {
        return new UnpooledDirectByteBuf(UnpooledByteBufAllocator.DEFAULT, length, maxCapacity);
    }

    @Test
    public void testIsContiguous() {
        ByteBuf buf = newBuffer(4);
        assertTrue(buf.isContiguous());
        buf.release();
    }
}

Frequently Asked Questions

What is the BigEndianDirectByteBufTest class?
BigEndianDirectByteBufTest is a class in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/BigEndianDirectByteBufTest.java.
Where is BigEndianDirectByteBufTest defined?
BigEndianDirectByteBufTest is defined in buffer/src/test/java/io/netty/buffer/BigEndianDirectByteBufTest.java at line 29.

Analyze Your Own Codebase

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

Try Supermodel Free