Home / Function/ getRawOpt() — netty Function Reference

getRawOpt() — netty Function Reference

Architecture documentation for the getRawOpt() function in Socket.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fd17a8e1_772c_399c_52b8_1a30cb989289["getRawOpt()"]
  c1db2c0c_ff79_5334_3102_02a56efa545c["Socket"]
  fd17a8e1_772c_399c_52b8_1a30cb989289 -->|defined in| c1db2c0c_ff79_5334_3102_02a56efa545c
  5b631cba_4733_1671_11a8_f779a798616f["getRawOptAddress()"]
  fd17a8e1_772c_399c_52b8_1a30cb989289 -->|calls| 5b631cba_4733_1671_11a8_f779a798616f
  84256dcd_b0e7_213e_a48d_6f3e75e39dd7["getRawOptArray()"]
  fd17a8e1_772c_399c_52b8_1a30cb989289 -->|calls| 84256dcd_b0e7_213e_a48d_6f3e75e39dd7
  style fd17a8e1_772c_399c_52b8_1a30cb989289 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java lines 536–547

    public void getRawOpt(int level, int optname, ByteBuffer out) throws IOException {
        if (out.isDirect()) {
            getRawOptAddress(fd, level, optname, Buffer.memoryAddress(out) + out.position() , out.remaining());
        } else if (out.hasArray()) {
            getRawOptArray(fd, level, optname, out.array(), out.position() + out.arrayOffset(), out.remaining());
        } else {
            byte[] outArray = new byte[out.remaining()];
            getRawOptArray(fd, level, optname, outArray, 0, outArray.length);
            out.put(outArray);
        }
        out.position(out.limit());
    }

Domain

Subdomains

Frequently Asked Questions

What does getRawOpt() do?
getRawOpt() is a function in the netty codebase, defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java.
Where is getRawOpt() defined?
getRawOpt() is defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java at line 536.
What does getRawOpt() call?
getRawOpt() calls 2 function(s): getRawOptAddress, getRawOptArray.

Analyze Your Own Codebase

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

Try Supermodel Free