MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / WriteBool

Function WriteBool

projects/Go/proto/fbe/Buffer.go:311–317  ·  view source on GitHub ↗

Write bool into the buffer

(buffer []byte, offset int, value bool)

Source from the content-addressed store, hash-verified

309
310// Write bool into the buffer
311func 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
320func WriteByte(buffer []byte, offset int, value byte) {

Callers 2

SetMethod · 0.85
SetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected