setShortBE() — netty Function Reference
Architecture documentation for the setShortBE() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 392c19e8_2871_94f7_62a3_7da9836c9b96["setShortBE()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] 392c19e8_2871_94f7_62a3_7da9836c9b96 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 style 392c19e8_2871_94f7_62a3_7da9836c9b96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 273–291
@SuppressWarnings("deprecation")
@Test
public void setShortBE() {
int shortValue = 0x1234;
ByteBuf buf = Unpooled.wrappedBuffer(new byte[2]).order(ByteOrder.BIG_ENDIAN);
ByteBufUtil.setShortBE(buf, 0, shortValue);
assertEquals(shortValue, buf.readShort());
buf.resetReaderIndex();
assertEquals(ByteBufUtil.swapShort((short) shortValue), buf.readShortLE());
buf.release();
buf = Unpooled.wrappedBuffer(new byte[2]).order(ByteOrder.LITTLE_ENDIAN);
ByteBufUtil.setShortBE(buf, 0, shortValue);
assertEquals(ByteBufUtil.swapShort((short) shortValue), buf.readShortLE());
buf.resetReaderIndex();
assertEquals(ByteBufUtil.swapShort((short) shortValue), buf.readShort());
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setShortBE() do?
setShortBE() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is setShortBE() defined?
setShortBE() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 273.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free