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

Method WriteDirect

nocopy_linkbuffer_race.go:163–167  ·  view source on GitHub ↗

WriteDirect cannot be mixed with WriteString or WriteBinary functions.

(p []byte, remainLen int)

Source from the content-addressed store, hash-verified

161
162// WriteDirect cannot be mixed with WriteString or WriteBinary functions.
163func (b *SafeLinkBuffer) WriteDirect(p []byte, remainLen int) error {
164 b.Lock()
165 defer b.Unlock()
166 return b.UnsafeLinkBuffer.WriteDirect(p, remainLen)
167}
168
169// WriteByte implements Writer.
170func (b *SafeLinkBuffer) WriteByte(p byte) (err error) {

Callers

nothing calls this directly

Calls 1

WriteDirectMethod · 0.65

Tested by

no test coverage detected