Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <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);
 }