MCPcopy Create free account
hub / github.com/DNAProject/DNA / ReadBool

Function ReadBool

common/serialization/serialize.go:291–295  ·  view source on GitHub ↗
(reader io.Reader)

Source from the content-addressed store, hash-verified

289}
290
291func ReadBool(reader io.Reader) (bool, error) {
292 var x bool
293 err := binary.Read(reader, binary.LittleEndian, &x)
294 return x, err
295}
296
297func WriteByte(writer io.Writer, val byte) error {
298 _, err := writer.Write([]byte{val})

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected