NewReader creates a new Reader that will read from the given data.
(data []byte)
| 30 | |
| 31 | // NewReader creates a new Reader that will read from the given data. |
| 32 | func NewReader(data []byte) *Reader { |
| 33 | return &Reader{ |
| 34 | buf: data, |
| 35 | offset: 0, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // Bool reads a bool. |
| 40 | func (reader *Reader) Bool() bool { |
no outgoing calls