Пример #1
0
            public ClientVerifyMessage(byte[] buf, ref int i) : base(KType)
            {
                int byteCount = Bit.ReadInt32(buf, ref i);

                verificationCode = new byte[byteCount];
                for (int j = 0; j < byteCount; ++j)
                {
                    verificationCode[j] = Bit.ReadUInt8(buf, ref i);
                }
            }
Пример #2
0
            public ServerVerifyResultMessage(byte[] buf, ref int i) : base(KType)
            {
                byte val = Bit.ReadUInt8(buf, ref i);

                result = val != 0;
            }
Пример #3
0
 public byte ReadByte()
 {
     return(Bit.ReadUInt8(bytes, ref i));
 }
Пример #4
0
        public bool ReadBoolean()
        {
            byte val = Bit.ReadUInt8(bytes, ref i);

            return(val != 0);
        }