WriteByte() public method

public WriteByte ( byte Value ) : void
Value byte
return void
Example #1
0
    public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) {
      Writer.WriteInt32(Size);

      if (Size < 0) {
        await Writer.WriteBytes(Encoding.Unicode.GetBytes(String));
      }
      else {
        await Writer.WriteBytes(Encoding.ASCII.GetBytes(String));

        Writer.WriteByte(0);
      }
    }
 public override async Task WriteBuffer(ByteArrayWriter Writer, int CurrentOffset) {
   if (byteValue.HasValue) Writer.WriteByte(byteValue.Value);
   else await NameIndexValue.WriteBuffer(Writer, CurrentOffset);
 }