DeveMazeGenerator.InnerMaps.InnerMapHelpers.CompleteHDArray.ReadIntArray C# (CSharp) Method

ReadIntArray() public method

public ReadIntArray ( long pos, int count ) : int[]
pos long
count int
return int[]
        public int[] ReadIntArray(long pos, int count)
        {
            byte[] toRead = new byte[count];
            fileStream.Position = pos;
            fileStream.Read(toRead, 0, count);

            int[] intArray = new int[count / 4];
            Buffer.BlockCopy(toRead, 0, intArray, 0, count);
            return intArray;
        }