Package com.itextpdf.io.codec.brotli.dec
Class Utils
java.lang.Object
com.itextpdf.io.codec.brotli.dec.Utils
A set of utility methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
private static final int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
fillWithZeroes
(byte[] dest, int offset, int length) Fills byte array with zeroes.(package private) static void
fillWithZeroes
(int[] dest, int offset, int length) Fills int array with zeroes.
-
Field Details
-
BYTE_ZEROES
private static final byte[] BYTE_ZEROES -
INT_ZEROES
private static final int[] INT_ZEROES
-
-
Constructor Details
-
Utils
Utils()
-
-
Method Details
-
fillWithZeroes
static void fillWithZeroes(byte[] dest, int offset, int length) Fills byte array with zeroes.Current implementation uses
System.arraycopy(java.lang.Object, int, java.lang.Object, int, int)
, so it should be used for length not less than 16.- Parameters:
dest
- array to fill with zeroesoffset
- the first byte to filllength
- number of bytes to change
-
fillWithZeroes
static void fillWithZeroes(int[] dest, int offset, int length) Fills int array with zeroes.Current implementation uses
System.arraycopy(java.lang.Object, int, java.lang.Object, int, int)
, so it should be used for length not less than 16.- Parameters:
dest
- array to fill with zeroesoffset
- the first item to filllength
- number of item to change
-