Home / Function/ getBufferLength() — netty Function Reference

getBufferLength() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

    static int getBufferLength(ByteBuffer iov) {
        if (Native.SIZEOF_SIZE_T == 4) {
            return iov.getInt(iov.position() + Native.IOVEC_OFFSETOF_IOV_LEN);
        }
        assert Native.SIZEOF_SIZE_T == 8;
        return (int) iov.getLong(iov.position() + Native.IOVEC_OFFSETOF_IOV_LEN);
    }

Domain

Subdomains

Frequently Asked Questions

What does getBufferLength() do?
getBufferLength() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/Iov.java.
Where is getBufferLength() defined?
getBufferLength() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/Iov.java at line 52.

Analyze Your Own Codebase

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

Try Supermodel Free