Home / Function/ copy() — netty Function Reference

copy() — netty Function Reference

Architecture documentation for the copy() function in AsciiString.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cff63d89_0f36_f27f_140a_5696cbe54657["copy()"]
  a41de6d4_fd08_8a12_95fd_35db12fdb4cc["AsciiString"]
  cff63d89_0f36_f27f_140a_5696cbe54657 -->|defined in| a41de6d4_fd08_8a12_95fd_35db12fdb4cc
  fb319f55_ebbc_4b58_3f44_4a89b340c1b2["length()"]
  cff63d89_0f36_f27f_140a_5696cbe54657 -->|calls| fb319f55_ebbc_4b58_3f44_4a89b340c1b2
  563104d5_0779_8bf9_4289_ded808a3624b["arrayOffset()"]
  cff63d89_0f36_f27f_140a_5696cbe54657 -->|calls| 563104d5_0779_8bf9_4289_ded808a3624b
  b0010533_e167_3ce3_bebe_5db3bfe5e02a["b2c()"]
  cff63d89_0f36_f27f_140a_5696cbe54657 -->|calls| b0010533_e167_3ce3_bebe_5db3bfe5e02a
  style cff63d89_0f36_f27f_140a_5696cbe54657 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/AsciiString.java lines 413–420

    public void copy(int srcIdx, byte[] dst, int dstIdx, int length) {
        if (isOutOfBounds(srcIdx, length, length())) {
            throw new IndexOutOfBoundsException("expected: " + "0 <= srcIdx(" + srcIdx + ") <= srcIdx + length("
                            + length + ") <= srcLen(" + length() + ')');
        }

        System.arraycopy(value, srcIdx + offset, checkNotNull(dst, "dst"), dstIdx, length);
    }

Domain

Subdomains

Frequently Asked Questions

What does copy() do?
copy() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/AsciiString.java.
Where is copy() defined?
copy() is defined in common/src/main/java/io/netty/util/AsciiString.java at line 413.
What does copy() call?
copy() calls 3 function(s): arrayOffset, b2c, length.

Analyze Your Own Codebase

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

Try Supermodel Free