Copy returns the BytesReader reading from the same slice as br at the same position.
()
| 42 | // Copy returns the BytesReader reading from the same slice as br at the same |
| 43 | // position. |
| 44 | func (br BytesReader) Copy() BytesReader { |
| 45 | return NewBytesReader(br.Bytes()) |
| 46 | } |
| 47 | |
| 48 | // Close is a dummy method for implementation of io.Closer so BytesReader can |
| 49 | // be used in MemoryBuffer directly. |
no test coverage detected