Bytes returns the unread portion of underlying slice used to construct BytesReader.
()
| 36 | // Bytes returns the unread portion of underlying slice used to construct |
| 37 | // BytesReader. |
| 38 | func (br BytesReader) Bytes() []byte { |
| 39 | return br.value[int(br.Size())-br.Len():] |
| 40 | } |
| 41 | |
| 42 | // Copy returns the BytesReader reading from the same slice as br at the same |
| 43 | // position. |