Home / Function/ allocRead() — netty Function Reference

allocRead() — netty Function Reference

Architecture documentation for the allocRead() function in IoUringAdaptiveBufferRingAllocatorTest.java from the netty codebase.

Function java Buffer Search called by 3

Entity Profile

Dependency Diagram

graph TD
  cf42edfa_132a_3dd8_b2d2_a0241b7b8d39["allocRead()"]
  532266ae_9a19_f7f1_79fa_00f339859d6d["IoUringAdaptiveBufferRingAllocatorTest"]
  cf42edfa_132a_3dd8_b2d2_a0241b7b8d39 -->|defined in| 532266ae_9a19_f7f1_79fa_00f339859d6d
  24515e64_f051_0dee_37e3_0e6a53888236["lastPartialReadDoesNotRampDown()"]
  24515e64_f051_0dee_37e3_0e6a53888236 -->|calls| cf42edfa_132a_3dd8_b2d2_a0241b7b8d39
  ec623a32_eef3_9037_555f_afffc4800095["lastPartialReadCanRampUp()"]
  ec623a32_eef3_9037_555f_afffc4800095 -->|calls| cf42edfa_132a_3dd8_b2d2_a0241b7b8d39
  736fe095_d68b_e38f_fd45_287d9989d67f["allocReadExpected()"]
  736fe095_d68b_e38f_fd45_287d9989d67f -->|calls| cf42edfa_132a_3dd8_b2d2_a0241b7b8d39
  style cf42edfa_132a_3dd8_b2d2_a0241b7b8d39 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringAdaptiveBufferRingAllocatorTest.java lines 95–102

    private static void allocRead(IoUringAdaptiveBufferRingAllocator allocator,
                                  int expectedBufferSize,
                                  int lastRead) {
        ByteBuf buf = allocator.allocate();
        assertEquals(expectedBufferSize, buf.capacity());
        allocator.lastBytesRead(expectedBufferSize, lastRead);
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does allocRead() do?
allocRead() is a function in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringAdaptiveBufferRingAllocatorTest.java.
Where is allocRead() defined?
allocRead() is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringAdaptiveBufferRingAllocatorTest.java at line 95.
What calls allocRead()?
allocRead() is called by 3 function(s): allocReadExpected, lastPartialReadCanRampUp, lastPartialReadDoesNotRampDown.

Analyze Your Own Codebase

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

Try Supermodel Free