示例#1
0
 public override void WriteTo(byte[] buf, ref int i)
 {
     Bit.WriteInt32(buf, ref i, verificationCode.Length);
     foreach (var b in verificationCode)
     {
         Bit.WriteUInt8(buf, ref i, b);
     }
 }
示例#2
0
 public override void WriteTo(byte[] buf, ref int i)
 {
     Bit.WriteUInt8(buf, ref i, (byte)(result ? 1 : 0));
 }
示例#3
0
 public void WriteByte(byte val)
 {
     Bit.WriteUInt8(bytes, ref i, val);
 }
示例#4
0
 public void WriteBoolean(bool val)
 {
     Bit.WriteUInt8(bytes, ref i, (byte)(val ? 1 : 0));
 }