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

Method Set

bytebuffer.go:94–96  ·  view source on GitHub ↗

Set sets ByteBuffer.B to p.

(p []byte)

Source from the content-addressed store, hash-verified

92
93// Set sets ByteBuffer.B to p.
94func (b *ByteBuffer) Set(p []byte) {
95 b.B = append(b.B[:0], p...)
96}
97
98// SetString sets ByteBuffer.B to s.
99func (b *ByteBuffer) SetString(s string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected