Home / Function/ testWrapShortFromIntArray() — netty Function Reference

testWrapShortFromIntArray() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/UnpooledTest.java lines 546–562

    @Test
    public void testWrapShortFromIntArray() {
        ByteBuf buffer = copyShort(1, 4);
        assertEquals(4, buffer.capacity());
        assertEquals(1, buffer.readShort());
        assertEquals(4, buffer.readShort());
        assertFalse(buffer.isReadable());
        buffer.release();

        buffer = copyShort((int[]) null);
        assertEquals(0, buffer.capacity());
        buffer.release();

        buffer = copyShort(new int[] {});
        assertEquals(0, buffer.capacity());
        buffer.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free