Top Description Fields Constructors Methods
org.brotli.dec

pack-priv final Class Utils

extends Object
Class Inheritance

A set of utility methods.

Field Summary

Modifier and TypeField and Description
private static final byte[]
private static final int[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
fillWithZeroes(byte[]
array to fill with zeroes
dest
,
int
the first byte to fill
offset
,
int
number of bytes to change
length
)

Fills byte array with zeroes.

pack-priv static void
fillWithZeroes(int[]
array to fill with zeroes
dest
,
int
the first item to fill
offset
,
int
number of item to change
length
)

Fills int array with zeroes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BYTE_ZEROESback to summary
private static final byte[] BYTE_ZEROES
INT_ZEROESback to summary
private static final int[] INT_ZEROES

Constructor Detail

Utilsback to summary
pack-priv Utils()

Method Detail

fillWithZeroesback to summary
pack-priv static void fillWithZeroes(byte[] dest, int offset, int length)

Fills byte array with zeroes.

Current implementation uses System#arraycopy, so it should be used for length not less than 16.

Parameters
dest:byte[]

array to fill with zeroes

offset:int

the first byte to fill

length:int

number of bytes to change

fillWithZeroesback to summary
pack-priv static void fillWithZeroes(int[] dest, int offset, int length)

Fills int array with zeroes.

Current implementation uses System#arraycopy, so it should be used for length not less than 16.

Parameters
dest:int[]

array to fill with zeroes

offset:int

the first item to fill

length:int

number of item to change