Write bool into the buffer
(buffer []byte, offset int, value bool)
| 309 | |
| 310 | // Write bool into the buffer |
| 311 | func WriteBool(buffer []byte, offset int, value bool) { |
| 312 | if value { |
| 313 | buffer[offset] = 1 |
| 314 | } else { |
| 315 | buffer[offset] = 0 |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | // Write byte into the buffer |
| 320 | func WriteByte(buffer []byte, offset int, value byte) { |