Home / Function/ writeStringMustIgnoreHigherOrderByte() — netty Function Reference

writeStringMustIgnoreHigherOrderByte() — netty Function Reference

Architecture documentation for the writeStringMustIgnoreHigherOrderByte() function in ByteBufStreamTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  983c2520_acbb_db47_73ed_a918fef2da47["writeStringMustIgnoreHigherOrderByte()"]
  a5486ee2_8de3_00d9_5697_f3849d26246a["ByteBufStreamTest"]
  983c2520_acbb_db47_73ed_a918fef2da47 -->|defined in| a5486ee2_8de3_00d9_5697_f3849d26246a
  style 983c2520_acbb_db47_73ed_a918fef2da47 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufStreamTest.java lines 346–355

    @Test
    void writeStringMustIgnoreHigherOrderByte() throws Exception {
        ByteBuf buf = Unpooled.buffer();
        try (ByteBufOutputStream out = new ByteBufOutputStream(buf, false)) {
            out.writeBytes("√");
        }
        assertEquals(0x221A, '√'); // This is a multibyte character
        assertEquals(0x1A, buf.readByte()); // Only the lower-order byte is written
        assertEquals(0, buf.readableBytes());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free