()
| 97 | } |
| 98 | |
| 99 | func (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(). |
no test coverage detected