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

Method NextBool

common/zero_copy_source.go:99–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (self *ZeroCopySource) NextBool() (data bool, irregular bool, eof bool) {
100 val, eof := self.NextByte()
101 if val == 0 {
102 data = false
103 } else if val == 1 {
104 data = true
105 } else {
106 data = true
107 irregular = true
108 }
109
110 return
111}
112
113// Backs up a number of bytes, so that the next call to NextXXX() returns data again
114// that was already returned by the last call to NextXXX().

Callers 6

DeserializeMethod · 0.95
DeserializationMethod · 0.80
DeserializationMethod · 0.80
deserializeMethod · 0.80
DecodeValueFunction · 0.80
DecodeBoolFunction · 0.80

Calls 1

NextByteMethod · 0.95

Tested by

no test coverage detected