Home / Function/ isZeroSafe() — netty Function Reference

isZeroSafe() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3017f0b7_5318_f655_fe5d_2701de74f6dc["isZeroSafe()"]
  2e66d079_807f_6785_864f_73ab09fbc515["PlatformDependent"]
  3017f0b7_5318_f655_fe5d_2701de74f6dc -->|defined in| 2e66d079_807f_6785_864f_73ab09fbc515
  c8e7fdf1_bbd3_1c10_678f_45cfa603989d["isZero()"]
  c8e7fdf1_bbd3_1c10_678f_45cfa603989d -->|calls| 3017f0b7_5318_f655_fe5d_2701de74f6dc
  style 3017f0b7_5318_f655_fe5d_2701de74f6dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/PlatformDependent.java lines 1681–1689

    private static boolean isZeroSafe(byte[] bytes, int startPos, int length) {
        final int end = startPos + length;
        for (; startPos < end; ++startPos) {
            if (bytes[startPos] != 0) {
                return false;
            }
        }
        return true;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free