setShort() — netty Function Reference
Architecture documentation for the setShort() function in UnsafeByteBufUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 03e2248e_0c02_a822_c29c_c12faa32f83b["setShort()"] 2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a["UnsafeByteBufUtil"] 03e2248e_0c02_a822_c29c_c12faa32f83b -->|defined in| 2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a style 03e2248e_0c02_a822_c29c_c12faa32f83b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java lines 137–145
static void setShort(long address, int value) {
if (UNALIGNED) {
PlatformDependent.putShort(
address, BIG_ENDIAN_NATIVE_ORDER ? (short) value : Short.reverseBytes((short) value));
} else {
PlatformDependent.putByte(address, (byte) (value >>> 8));
PlatformDependent.putByte(address + 1, (byte) value);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setShort() do?
setShort() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java.
Where is setShort() defined?
setShort() is defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java at line 137.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free