Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.util Namespace / ArrayUtil Class / byteArraySet Method
The array to set.
The value to set the array to.

In This Topic
    byteArraySet Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Shared Sub byteArraySet( _
       ByVal arr() As System.Byte, _
       ByVal val As System.Byte _
    ) 
    public static void byteArraySet( 
       System.byte[] arr,
       System.byte val
    )

    Parameters

    arr
    The array to set.
    val
    The value to set the array to.
    See Also