Avro.BinaryEncoder.WriteBoolean C# (CSharp) Method

WriteBoolean() public method

a boolean is written as a single byte whose value is either 0 (false) or 1 (true).
public WriteBoolean ( Stream Stream, bool datum ) : void
Stream Stream
datum bool
return void
        public void WriteBoolean(Stream Stream, bool datum)
        {
            byte value = (byte)(datum ? 1 : 0);
            write(Stream, value);
        }