Home / Function/ set() — netty Function Reference

set() — netty Function Reference

Architecture documentation for the set() function in Iov.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9c8c5fc1_edf5_bc5e_82c1_b375840d34dc["set()"]
  161f2bdb_4389_f834_83e1_58a1c10b9212["Iov"]
  9c8c5fc1_edf5_bc5e_82c1_b375840d34dc -->|defined in| 161f2bdb_4389_f834_83e1_58a1c10b9212
  style 9c8c5fc1_edf5_bc5e_82c1_b375840d34dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/Iov.java lines 32–42

    static void set(ByteBuffer buffer, long bufferAddress, int length) {
        int position = buffer.position();
        if (Native.SIZEOF_SIZE_T == 4) {
            buffer.putInt(position + Native.IOVEC_OFFSETOF_IOV_BASE, (int) bufferAddress);
            buffer.putInt(position + Native.IOVEC_OFFSETOF_IOV_LEN, length);
        } else {
            assert Native.SIZEOF_SIZE_T == 8;
            buffer.putLong(position + Native.IOVEC_OFFSETOF_IOV_BASE, bufferAddress);
            buffer.putLong(position + Native.IOVEC_OFFSETOF_IOV_LEN, length);
        }
    }

Domain

Subdomains

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/Iov.java.
Where is set() defined?
set() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/Iov.java at line 32.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free