Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 public override void WriteTo(byte[] buf, ref int i)
 {
     Bit.WriteUInt8(buf, ref i, (byte)(result ? 1 : 0));
 }
Exemplo n.º 3
0
 public void WriteByte(byte val)
 {
     Bit.WriteUInt8(bytes, ref i, val);
 }
Exemplo n.º 4
0
 public void WriteBoolean(bool val)
 {
     Bit.WriteUInt8(bytes, ref i, (byte)(val ? 1 : 0));
 }