Test.MiniCBOR.WriteBoolean C# (CSharp) Méthode

WriteBoolean() public static méthode

public static WriteBoolean ( bool value, Stream stream ) : void
value bool
stream Stream
Résultat void
        public static void WriteBoolean(bool value, Stream stream)
        {
            if (stream == null) {
            throw new ArgumentNullException("stream");
              }
              stream.WriteByte(value ? (byte)0xf5 : (byte)0xf4);
        }