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