コード例 #1
0
        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);
        }
コード例 #2
0
        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());
        }
コード例 #3
0
 public byte[] Deserialize(BinarySerializerData data)
 {
     return(FileHelper.Decompress(data.Data, data.Length));
 }