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

Method WriteTo

bytebuffer.go:59–62  ·  view source on GitHub ↗

WriteTo implements io.WriterTo.

(w io.Writer)

Source from the content-addressed store, hash-verified

57
58// WriteTo implements io.WriterTo.
59func (b *ByteBuffer) WriteTo(w io.Writer) (int64, error) {
60 n, err := w.Write(b.B)
61 return int64(n), err
62}
63
64// Bytes returns b.B, i.e. all the bytes accumulated in the buffer.
65//

Callers 1

TestByteBufferWriteToFunction · 0.80

Calls 1

WriteMethod · 0.80

Tested by 1

TestByteBufferWriteToFunction · 0.64