Reset resets the given buffer with a new byte slice
(buf []byte)
| 131 | |
| 132 | // Reset resets the given buffer with a new byte slice |
| 133 | func (b *ByteBuffer) Reset(buf []byte) { |
| 134 | b.buf = buf |
| 135 | b.off = 0 |
| 136 | } |
| 137 | |
| 138 | // ByteInputAdapter reader wrapper |
| 139 | type ByteInputAdapter struct { |
no outgoing calls