set() — netty Function Reference
Architecture documentation for the set() function in MsgHdr.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2945e618_b315_2c6d_4aa2_1db17ba484fe["set()"] 4a81f547_d99c_c526_30f9_847735bb8edf["MsgHdr"] 2945e618_b315_2c6d_4aa2_1db17ba484fe -->|defined in| 4a81f547_d99c_c526_30f9_847735bb8edf style 2945e618_b315_2c6d_4aa2_1db17ba484fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/MsgHdr.java lines 39–56
static void set(ByteBuffer memory, long iovMemory, int iovLength) {
int memoryPosition = memory.position();
memory.putInt(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_NAMELEN, 0);
if (Native.SIZEOF_SIZE_T == 4) {
memory.putInt(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_NAME, 0);
memory.putInt(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_IOV, (int) iovMemory);
memory.putInt(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_IOVLEN, iovLength);
memory.putInt(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_CONTROL, 0);
memory.putInt(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_CONTROLLEN, 0);
} else {
assert Native.SIZEOF_SIZE_T == 8;
memory.putLong(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_NAME, 0);
memory.putLong(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_IOV, iovMemory);
memory.putLong(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_IOVLEN, iovLength);
memory.putLong(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_CONTROL, 0);
memory.putLong(memoryPosition + Native.MSGHDR_OFFSETOF_MSG_CONTROLLEN, 0);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does set() do?
set() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/MsgHdr.java.
Where is set() defined?
set() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/MsgHdr.java at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free