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

Method WriteString

bytebuffer.go:88–91  ·  view source on GitHub ↗

WriteString appends s to ByteBuffer.B.

(s string)

Source from the content-addressed store, hash-verified

86
87// WriteString appends s to ByteBuffer.B.
88func (b *ByteBuffer) WriteString(s string) (int, error) {
89 b.B = append(b.B, s...)
90 return len(s), nil
91}
92
93// Set sets ByteBuffer.B to p.
94func (b *ByteBuffer) Set(p []byte) {

Callers 3

TestByteBufferReadFromFunction · 0.95
TestByteBufferWriteToFunction · 0.95
ExampleByteBufferFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestByteBufferReadFromFunction · 0.76
TestByteBufferWriteToFunction · 0.76
ExampleByteBufferFunction · 0.64