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

Method SetString

bytebuffer.go:99–101  ·  view source on GitHub ↗

SetString sets ByteBuffer.B to s.

(s string)

Source from the content-addressed store, hash-verified

97
98// SetString sets ByteBuffer.B to s.
99func (b *ByteBuffer) SetString(s string) {
100 b.B = append(b.B[:0], s...)
101}
102
103// String returns string representation of ByteBuffer.B.
104func (b *ByteBuffer) String() string {

Callers 1

testByteBufferGetStringFunction · 0.80

Calls

no outgoing calls

Tested by 1

testByteBufferGetStringFunction · 0.64