public static ByteArrayToInts ( byte buffer, int offset, int count ) : int[] | ||
buffer | byte | The byte buffer. |
offset | int | The zero-based offset in |
count | int | The number of bytes to convert. |
return | int[] |
public static int[] ByteArrayToInts(byte[] buffer, int offset, int count)
{
int intCount = count / sizeof(int);
int[] integers = new int[intCount];
Buffer.BlockCopy(buffer, offset, integers, 0, intCount * sizeof(int));
return integers;
}