MCPcopy Create free account
hub / github.com/cloudwego/netpoll / WriteString

Method WriteString

nocopy_linkbuffer_race.go:149–153  ·  view source on GitHub ↗

WriteString implements Writer.

(s string)

Source from the content-addressed store, hash-verified

147
148// WriteString implements Writer.
149func (b *SafeLinkBuffer) WriteString(s string) (n int, err error) {
150 b.Lock()
151 defer b.Unlock()
152 return b.UnsafeLinkBuffer.WriteString(s)
153}
154
155// WriteBinary implements Writer.
156func (b *SafeLinkBuffer) WriteBinary(p []byte) (n int, err error) {

Callers

nothing calls this directly

Calls 1

WriteStringMethod · 0.65

Tested by

no test coverage detected