Esempio n. 1
0
        /// <summary>
        /// Reads parameter from the given binary stream
        /// </summary>
        /// <param name="reader"></param>
        public override void Read(BinaryReader reader)
        {
            byte first = ServerBinaryReader.ReadByte(reader);

            if (first == NULL)
            {
                Value = null;
            }
            else
            {
                Value = NetCommand.Parse(reader);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Reads parameter from the given binary stream
 /// </summary>
 /// <param name="reader"></param>
 public override void Read(BinaryReader reader)
 {
     Value = ServerBinaryReader.ReadByte(reader);
 }