AsBufferReader returns the Buffer as a BufferReader capable of io methods. The new BufferReader takes ownership of b.
()
| 594 | // AsBufferReader returns the Buffer as a BufferReader capable of io methods. |
| 595 | // The new BufferReader takes ownership of b. |
| 596 | func (b *Buffer) AsBufferReader() BufferReader { |
| 597 | return BufferReader{b} |
| 598 | } |
| 599 | |
| 600 | // BufferReader implements io methods on Buffer. Users must call Close() |
| 601 | // when finished with the buffer to free the underlying memory. |
no outgoing calls
no test coverage detected