MCPcopy
hub / github.com/google/gvisor / AsBufferReader

Method AsBufferReader

pkg/buffer/buffer.go:596–598  ·  view source on GitHub ↗

AsBufferReader returns the Buffer as a BufferReader capable of io methods. The new BufferReader takes ownership of b.

()

Source from the content-addressed store, hash-verified

594// AsBufferReader returns the Buffer as a BufferReader capable of io methods.
595// The new BufferReader takes ownership of b.
596func (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.

Callers 4

writeFrameMethod · 0.80
DeepCloneMethod · 0.80
fillPacketMethod · 0.80
nextHeaderDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected