explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder() — netty Function Reference
Architecture documentation for the explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder() function in AbstractByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 95f4e8f7_4ed6_c7ec_c7a3_b25b9aa452ef["explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder()"] 6540f2d1_cdad_6705_dd1d_9a24e2e53242["AbstractByteBufTest"] 95f4e8f7_4ed6_c7ec_c7a3_b25b9aa452ef -->|defined in| 6540f2d1_cdad_6705_dd1d_9a24e2e53242 style 95f4e8f7_4ed6_c7ec_c7a3_b25b9aa452ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java lines 6266–6298
@Test
public void explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder() {
buffer.clear();
buffer.writeBytes(new byte[] {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08});
assertEquals(0x0201, buffer.readShortLE());
buffer.readerIndex(0);
assertEquals(0x0201, buffer.readUnsignedShortLE());
buffer.readerIndex(0);
assertEquals(0x030201, buffer.readMediumLE());
buffer.readerIndex(0);
assertEquals(0x030201, buffer.readUnsignedMediumLE());
buffer.readerIndex(0);
assertEquals(0x04030201, buffer.readIntLE());
buffer.readerIndex(0);
assertEquals(0x04030201, buffer.readUnsignedIntLE());
buffer.readerIndex(0);
assertEquals(0x04030201, Float.floatToRawIntBits(buffer.readFloatLE()));
buffer.readerIndex(0);
assertEquals(0x0807060504030201L, buffer.readLongLE());
buffer.readerIndex(0);
assertEquals(0x0807060504030201L, Double.doubleToRawLongBits(buffer.readDoubleLE()));
buffer.readerIndex(0);
assertEquals(0x0201, buffer.getShortLE(0));
assertEquals(0x0201, buffer.getUnsignedShortLE(0));
assertEquals(0x030201, buffer.getMediumLE(0));
assertEquals(0x030201, buffer.getUnsignedMediumLE(0));
assertEquals(0x04030201, buffer.getIntLE(0));
assertEquals(0x04030201, buffer.getUnsignedIntLE(0));
assertEquals(0x04030201, Float.floatToRawIntBits(buffer.getFloatLE(0)));
assertEquals(0x0807060504030201L, buffer.getLongLE(0));
assertEquals(0x0807060504030201L, Double.doubleToRawLongBits(buffer.getDoubleLE(0)));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder() do?
explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java.
Where is explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder() defined?
explicitLittleEndianReadMethodsMustAlwaysUseLittleEndianByteOrder() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java at line 6266.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free