Home / Function/ equalsSafe() — netty Function Reference

equalsSafe() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  aad2bf6f_949e_c26d_a5bf_8b0937c8e1e7["equalsSafe()"]
  2e66d079_807f_6785_864f_73ab09fbc515["PlatformDependent"]
  aad2bf6f_949e_c26d_a5bf_8b0937c8e1e7 -->|defined in| 2e66d079_807f_6785_864f_73ab09fbc515
  2f19db3c_8431_1d24_33ba_7a83b7189b29["equals()"]
  2f19db3c_8431_1d24_33ba_7a83b7189b29 -->|calls| aad2bf6f_949e_c26d_a5bf_8b0937c8e1e7
  style aad2bf6f_949e_c26d_a5bf_8b0937c8e1e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/PlatformDependent.java lines 1671–1679

    private static boolean equalsSafe(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) {
        final int end = startPos1 + length;
        for (; startPos1 < end; ++startPos1, ++startPos2) {
            if (bytes1[startPos1] != bytes2[startPos2]) {
                return false;
            }
        }
        return true;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does equalsSafe() do?
equalsSafe() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java.
Where is equalsSafe() defined?
equalsSafe() is defined in common/src/main/java/io/netty/util/internal/PlatformDependent.java at line 1671.
What calls equalsSafe()?
equalsSafe() is called by 1 function(s): equals.

Analyze Your Own Codebase

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

Try Supermodel Free