[]
        
(Showing Draft Content)

CSJ2K.j2k.util.ArrayUtil

ArrayUtil Class

This class contains a colleaction of utility static methods for arrays.

Inheritance
ArrayUtil
Namespace: CSJ2K.j2k.util
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public class ArrayUtil

Constructors

Name Description
ArrayUtil()

Fields

Name Description
INIT_EL_COPYING

The number of elements to copy initially in an optimized array copy

MAX_EL_COPYING

The maximum array size to do element by element copying, larger arrays are copyied in a n optimized way.

Methods

Name Description
byteArraySet(byte[], byte)

Reinitializes a byte array to the given value in an optimized way. If the length of the array is less than MAX_EL_COPYING, then the array is set element by element in the normal way, otherwise the first INIT_EL_COPYING elements are set element by element and then System.arraycopy is used to set the other parts of the array.

intArraySet(int[], int)

Reinitializes an int array to the given value in an optimized way. If the length of the array is less than MAX_EL_COPYING, then the array is set element by element in the normal way, otherwise the first INIT_EL_COPYING elements are set element by element and then System.arraycopy is used to set the other parts of the array.