Home / Function/ copyWithOffset() — netty Function Reference

copyWithOffset() — netty Function Reference

Architecture documentation for the copyWithOffset() function in NetUtilTest.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  b6d20c2f_9eea_f08f_ed23_91c42a8910d2["copyWithOffset()"]
  545234a8_c93e_9bed_bd0e_6c5542a33149["NetUtilTest"]
  b6d20c2f_9eea_f08f_ed23_91c42a8910d2 -->|defined in| 545234a8_c93e_9bed_bd0e_6c5542a33149
  87c2b511_70a8_efd2_00c6_2a2f690c700f["testBytesToIpAddressWithOffset()"]
  87c2b511_70a8_efd2_00c6_2a2f690c700f -->|calls| b6d20c2f_9eea_f08f_ed23_91c42a8910d2
  style b6d20c2f_9eea_f08f_ed23_91c42a8910d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/NetUtilTest.java lines 730–737

    private static byte[] copyWithOffset(byte[] bytes) {
        if (bytes == null) {
            return null;
        }
        byte[] array = new byte[bytes.length + 2];
        System.arraycopy(bytes, 0, array, 1,  bytes.length);
        return array;
    }

Domain

Subdomains

Frequently Asked Questions

What does copyWithOffset() do?
copyWithOffset() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/NetUtilTest.java.
Where is copyWithOffset() defined?
copyWithOffset() is defined in common/src/test/java/io/netty/util/NetUtilTest.java at line 730.
What calls copyWithOffset()?
copyWithOffset() is called by 1 function(s): testBytesToIpAddressWithOffset.

Analyze Your Own Codebase

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

Try Supermodel Free