testGetBytesAsciiString() — netty Function Reference
Architecture documentation for the testGetBytesAsciiString() function in AsciiStringCharacterTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 19bee4e9_e634_1ee8_2da5_6bde08b0da4d["testGetBytesAsciiString()"] fd37c1f8_6129_8e57_ad6d_da01ffebceb6["AsciiStringCharacterTest"] 19bee4e9_e634_1ee8_2da5_6bde08b0da4d -->|defined in| fd37c1f8_6129_8e57_ad6d_da01ffebceb6 style 19bee4e9_e634_1ee8_2da5_6bde08b0da4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/AsciiStringCharacterTest.java lines 79–90
@Test
public void testGetBytesAsciiString() {
final StringBuilder b = new StringBuilder();
for (int i = 0; i < 1 << 16; ++i) {
b.append("eéaà");
}
final String bString = b.toString();
// The AsciiString class actually limits the Charset to ISO_8859_1
byte[] expected = bString.getBytes(CharsetUtil.ISO_8859_1);
byte[] actual = new AsciiString(bString).toByteArray();
assertArrayEquals(expected, actual);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGetBytesAsciiString() do?
testGetBytesAsciiString() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/AsciiStringCharacterTest.java.
Where is testGetBytesAsciiString() defined?
testGetBytesAsciiString() is defined in common/src/test/java/io/netty/util/AsciiStringCharacterTest.java at line 79.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free