/// <summary> /// Initializes a new BartID from a byte stream /// </summary> internal BartID(ByteStream stream) { type = (BartTypeId)stream.ReadUshort(); flags = (BartFlags)stream.ReadByte(); byte dataLength = stream.ReadByte(); data = stream.ReadByteArray(dataLength); }