BitSharp.Common.Bits.EncodeBool C# (CSharp) Method

EncodeBool() public static method

public static EncodeBool ( bool value, byte buffer, int offset ) : void
value bool
buffer byte
offset int
return void
        public static void EncodeBool(bool value, byte[] buffer, int offset = 0)
        {
            buffer[offset++] = (byte)(value ? 1 : 0);
        }