Avro.BinaryEncoder.WriteBoolean C# (CSharp) Метод

WriteBoolean() публичный Метод

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
Результат void
        public void WriteBoolean(Stream Stream, bool datum)
        {
            byte value = (byte)(datum ? 1 : 0);
            write(Stream, value);
        }