public void Deserialize(Deserializer deserializer) { ushort unknown0Length = deserializer.ReadUInt16(); if (unknown0Length > 8066) { throw new InvalidDataException(); } Unknown0 = new byte[unknown0Length]; for (int i = 0; i < Unknown0.Length; i++) { Unknown0[i] = deserializer.ReadByte(); } }
public void Deserialize(Deserializer deserializer) { this.Unknown0 = deserializer.ReadVarint(); ushort unknown1Length = deserializer.ReadUInt16(); if (unknown1Length > 4098) { throw new InvalidDataException(); } Unknown1 = new byte[unknown1Length]; for (int i = 0; i < Unknown1.Length; i++) { Unknown1[i] = deserializer.ReadByte(); } }