Class ArrayUtil
This file is a helper class for internal usage only.
public sealed class ArrayUtil
- Inheritance
-
ArrayUtil
- Inherited Members
Remarks
This file is a helper class for internal usage only. Be aware that its API and functionality may be changed in the future.
Methods
CloneArray(int[])
Clones int array.
public static int[] CloneArray(int[] src)
Parameters
src
int[]the int array
Returns
- int[]
the int array
FillWithValue(int[], int)
Fills an array with the given value.
public static int[] FillWithValue(int[] a, int value)
Parameters
Returns
- int[]
the int array
FillWithValue(float[], float)
Fills an array with the given value.
public static float[] FillWithValue(float[] a, float value)
Parameters
Returns
- float[]
the float array
FillWithValue<T>(T[], T)
Fills an array with the given value.
public static void FillWithValue<T>(T[] a, T value)
Parameters
a
T[]the array
value
Tthe value of type
Type Parameters
T
the type of the implementation
HashCode(byte[])
Creates a hash of the given byte array.
public static int HashCode(byte[] a)
Parameters
a
byte[]the byte array
Returns
- int
the byte array
IndexOf(object[], object)
Gets the index of object.
public static int IndexOf(object[] a, object key)
Parameters
Returns
- int
the index of object
ShortenArray(byte[], int)
Shortens byte array.
public static byte[] ShortenArray(byte[] src, int length)
Parameters
Returns
- byte[]
the shortened byte array
ToIntArray(ICollection<int>)
Converts a collection to an int array.
public static int[] ToIntArray(ICollection<int> collection)
Parameters
collection
ICollection<int>the collection
Returns
- int[]
the int array