MCPcopy Create free account
hub / github.com/valyala/bytebufferpool / Bytes

Method Bytes

bytebuffer.go:67–69  ·  view source on GitHub ↗

Bytes returns b.B, i.e. all the bytes accumulated in the buffer. The purpose of this function is bytes.Buffer compatibility.

()

Source from the content-addressed store, hash-verified

65//
66// The purpose of this function is bytes.Buffer compatibility.
67func (b *ByteBuffer) Bytes() []byte {
68 return b.B
69}
70
71// Write implements io.Writer - it appends p to ByteBuffer.B
72func (b *ByteBuffer) Write(p []byte) (int, error) {

Callers 1

TestByteBufferWriteToFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestByteBufferWriteToFunction · 0.64