Ejemplo n.º 1
0
        public static Bhd5Range Read(BinaryReader reader)
        {
            Bhd5Range result = new Bhd5Range();

            result.StartOffset = reader.ReadInt64();
            result.EndOffset   = reader.ReadInt64();
            return(result);
        }
Ejemplo n.º 2
0
        public static Bhd5AesKey Read(BinaryReader reader)
        {
            Bhd5AesKey result = new Bhd5AesKey();

            result.Key = reader.ReadBytes(16);
            int rangeCount = reader.ReadInt32();

            Bhd5Range[] ranges = new Bhd5Range[rangeCount];
            for (int i = 0; i < rangeCount; i++)
            {
                ranges[i] = Bhd5Range.Read(reader);
            }
            result.Ranges = ranges;

            return(result);
        }
Ejemplo n.º 3
0
        public static Bhd5SaltedShaHash Read(BinaryReader reader)
        {
            Bhd5SaltedShaHash result = new Bhd5SaltedShaHash();

            result.Hash = reader.ReadBytes(32);
            int rangeCount = reader.ReadInt32();

            Bhd5Range[] ranges = new Bhd5Range[rangeCount];
            for (int i = 0; i < rangeCount; i++)
            {
                ranges[i] = Bhd5Range.Read(reader);
            }
            result.Ranges = ranges;

            return(result);
        }