Example usage for io.netty.util.internal PlatformDependent isZero

List of usage examples for io.netty.util.internal PlatformDependent isZero

Introduction

In this page you can find the example usage for io.netty.util.internal PlatformDependent isZero.

Prototype

public static boolean isZero(byte[] bytes, int startPos, int length) 

Source Link

Document

Determine if a subsection of an array is zero.

Usage

From source file:org.apache.bookkeeper.bookie.storage.ldb.ArrayUtil.java

License:Apache License

public static final boolean isArrayAllZeros(final byte[] array) {
    return PlatformDependent.isZero(array, 0, array.length);
}