Home / Function/ offer() — netty Function Reference

offer() — netty Function Reference

Architecture documentation for the offer() function in IntPriorityQueue.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b7ae3c0f_bbce_7e04_af93_b881ca553ef7["offer()"]
  ad6253f6_6b27_9dab_4272_9c668d433d62["IntPriorityQueue"]
  b7ae3c0f_bbce_7e04_af93_b881ca553ef7 -->|defined in| ad6253f6_6b27_9dab_4272_9c668d433d62
  f939e54c_fd1f_0380_742b_3ea857d85fdc["lift()"]
  b7ae3c0f_bbce_7e04_af93_b881ca553ef7 -->|calls| f939e54c_fd1f_0380_742b_3ea857d85fdc
  style b7ae3c0f_bbce_7e04_af93_b881ca553ef7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/IntPriorityQueue.java lines 29–40

    public void offer(int handle) {
        if (handle == NO_VALUE) {
            throw new IllegalArgumentException("The NO_VALUE (" + NO_VALUE + ") cannot be added to the queue.");
        }
        size++;
        if (size == array.length) {
            // Grow queue capacity.
            array = Arrays.copyOf(array, 1 + (array.length - 1) * 2);
        }
        array[size] = handle;
        lift(size);
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does offer() do?
offer() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/IntPriorityQueue.java.
Where is offer() defined?
offer() is defined in buffer/src/main/java/io/netty/buffer/IntPriorityQueue.java at line 29.
What does offer() call?
offer() calls 1 function(s): lift.

Analyze Your Own Codebase

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

Try Supermodel Free