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