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.
シンタックス
'宣言
Public Shared Sub byteArraySet( _
ByVal () As System.Byte, _
ByVal As System.Byte _
)
'使用法
Dim arr() As System.Byte
Dim val As System.Byte
ArrayUtil.byteArraySet(arr, val)
public static void byteArraySet(
System.byte[] ,
System.byte
)
パラメータ
- arr
- The array to set.
- val
- The value to set the array to.
参照