public int[] Deserialize(BinarySerializerData data) { byte[] b = FileHelper.Decompress(data.Data, data.Length); int[] returnValue = new int[data.Length / stride]; int x = 0, start = 0; for (int i = 0; i < data.Length; i += stride) { returnValue[x++] = BitShifter.ToInt(b, ref start); } return(returnValue); }
public List <ushort> Deserialize(BinarySerializerData data) { byte[] b = FileHelper.Decompress(data.Data, data.Length); ushort[] returnValue = new ushort[data.Length / stride]; int x = 0, start = 0; for (int i = 0; i < data.Length; i += stride) { returnValue[x++] = BitShifter.ToUShort(b, ref start); } return(returnValue.ToList()); }
public byte[] Deserialize(BinarySerializerData data) { return(FileHelper.Decompress(data.Data, data.Length)); }