Home / Function/ testHexDump() — netty Function Reference

testHexDump() — netty Function Reference

Architecture documentation for the testHexDump() function in UnpooledTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4d5bd71c_4291_cd2b_a3b6_446147f5481b["testHexDump()"]
  57588d83_f329_0d85_cfc5_eea9b8d43e8f["UnpooledTest"]
  4d5bd71c_4291_cd2b_a3b6_446147f5481b -->|defined in| 57588d83_f329_0d85_cfc5_eea9b8d43e8f
  style 4d5bd71c_4291_cd2b_a3b6_446147f5481b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/UnpooledTest.java lines 383–397

    @Test
    public void testHexDump() {
        assertEquals("", ByteBufUtil.hexDump(EMPTY_BUFFER));

        ByteBuf buffer = wrappedBuffer(new byte[]{ 0x12, 0x34, 0x56 });
        assertEquals("123456", ByteBufUtil.hexDump(buffer));
        buffer.release();

        buffer = wrappedBuffer(new byte[]{
                0x12, 0x34, 0x56, 0x78,
                (byte) 0x90, (byte) 0xAB, (byte) 0xCD, (byte) 0xEF
        });
        assertEquals("1234567890abcdef", ByteBufUtil.hexDump(buffer));
        buffer.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free