Home / Function/ testWriteUtf8Wrapped() — netty Function Reference

testWriteUtf8Wrapped() — netty Function Reference

Architecture documentation for the testWriteUtf8Wrapped() function in ByteBufUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  61b07ff5_f0c1_3502_19b5_98e6a2df024a["testWriteUtf8Wrapped()"]
  1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"]
  61b07ff5_f0c1_3502_19b5_98e6a2df024a -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7
  afc23043_de7e_d2bb_0163_d79677897fa6["assertWrapped()"]
  61b07ff5_f0c1_3502_19b5_98e6a2df024a -->|calls| afc23043_de7e_d2bb_0163_d79677897fa6
  style 61b07ff5_f0c1_3502_19b5_98e6a2df024a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 694–709

    @ParameterizedTest(name = PARAMETERIZED_NAME)
    @MethodSource("noUnsafe")
    public void testWriteUtf8Wrapped(BufferType bufferType) {
        String usAscii = "Some UTF-8 like äÄ∏ŒŒ";
        ByteBuf buf = unreleasableBuffer(buffer(bufferType, 16));
        assertWrapped(buf);
        buf.writeBytes(usAscii.getBytes(CharsetUtil.UTF_8));
        ByteBuf buf2 = unreleasableBuffer(buffer(bufferType, 16));
        assertWrapped(buf2);
        ByteBufUtil.writeUtf8(buf2, usAscii);

        assertEquals(buf, buf2);

        buf.unwrap().release();
        buf2.unwrap().release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testWriteUtf8Wrapped() do?
testWriteUtf8Wrapped() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is testWriteUtf8Wrapped() defined?
testWriteUtf8Wrapped() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 694.
What does testWriteUtf8Wrapped() call?
testWriteUtf8Wrapped() calls 1 function(s): assertWrapped.

Analyze Your Own Codebase

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

Try Supermodel Free