Home / Function/ ByteBuffer() — netty Function Reference

ByteBuffer() — netty Function Reference

Architecture documentation for the ByteBuffer() function in PlatformDependent.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a1d689bd_4558_1e21_9c75_ae1e74a93859["ByteBuffer()"]
  2e66d079_807f_6785_864f_73ab09fbc515["PlatformDependent"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|defined in| 2e66d079_807f_6785_864f_73ab09fbc515
  f2b6c96b_f0bc_42c1_81fd_e94d3a4d91a7["hasDirectBufferNoCleanerConstructor()"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| f2b6c96b_f0bc_42c1_81fd_e94d3a4d91a7
  70697834_5c96_d577_9eb7_bb5814bc2d55["incrementMemoryCounter()"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| 70697834_5c96_d577_9eb7_bb5814bc2d55
  b1cb26b4_c2ba_5673_a5f0_cf8c8a656d04["decrementMemoryCounter()"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| b1cb26b4_c2ba_5673_a5f0_cf8c8a656d04
  9733a343_e278_2b8a_b2ef_a659986f8ce1["throwException()"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| 9733a343_e278_2b8a_b2ef_a659986f8ce1
  f9f97c70_723b_fe44_1e76_e4c49b6d6c61["hasUnsafe()"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| f9f97c70_723b_fe44_1e76_e4c49b6d6c61
  72fb7564_1e79_5d56_219c_e6db0408f262["directBufferAddress()"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| 72fb7564_1e79_5d56_219c_e6db0408f262
  427fa0e9_62c1_8665_3813_3f8bf30b91f8["align()"]
  a1d689bd_4558_1e21_9c75_ae1e74a93859 -->|calls| 427fa0e9_62c1_8665_3813_3f8bf30b91f8
  style a1d689bd_4558_1e21_9c75_ae1e74a93859 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/PlatformDependent.java lines 620–626

    public static ByteBuffer directBuffer(long memoryAddress, int size) {
        if (PlatformDependent0.hasDirectBufferNoCleanerConstructor()) {
            return PlatformDependent0.newDirectBuffer(memoryAddress, size);
        }
        throw new UnsupportedOperationException(
                "sun.misc.Unsafe or java.nio.DirectByteBuffer.<init>(long, int) not available");
    }

Domain

Subdomains

Frequently Asked Questions

What does ByteBuffer() do?
ByteBuffer() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java.
Where is ByteBuffer() defined?
ByteBuffer() is defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java at line 620.
What does ByteBuffer() call?
ByteBuffer() calls 7 function(s): align, decrementMemoryCounter, directBufferAddress, hasDirectBufferNoCleanerConstructor, hasUnsafe, incrementMemoryCounter, throwException.

Analyze Your Own Codebase

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

Try Supermodel Free