public PolygonMaterial(byte[] inData) { using (MemoryStream ms = new MemoryStream(inData)) { using (BinaryReader br = new BinaryReader(ms)) { this.Flags = (PolygonMaterialFlags)br.ReadByte(); this.MaterialIndex = br.ReadByte(); } } }
public PolygonMaterial(byte[] inData) { using (MemoryStream ms = new MemoryStream(inData)) { using (BinaryReader br = new BinaryReader(ms)) { this.Flags = (PolygonMaterialFlags)br.ReadByte(); this.MaterialIndex = br.ReadByte(); } } }