EncodeBool encodes a bool value.
(b []byte, v bool)
| 2099 | |
| 2100 | // EncodeBool encodes a bool value. |
| 2101 | func (BinaryEncoding) EncodeBool(b []byte, v bool) { |
| 2102 | if v { |
| 2103 | b[0] = 1 |
| 2104 | } else { |
| 2105 | b[0] = 0 |
| 2106 | } |
| 2107 | } |
| 2108 | |
| 2109 | // EncodeByte encodes a byte value. |
| 2110 | func (BinaryEncoding) EncodeByte(b []byte, v byte) { |
no outgoing calls
no test coverage detected