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

Method WriteDirect

nocopy_readwriter.go:204–206  ·  view source on GitHub ↗

WriteDirect implements Writer.

(p []byte, remainCap int)

Source from the content-addressed store, hash-verified

202
203// WriteDirect implements Writer.
204func (w *zcWriter) WriteDirect(p []byte, remainCap int) error {
205 return w.buf.WriteDirect(p, remainCap)
206}
207
208// WriteByte implements Writer.
209func (w *zcWriter) WriteByte(b byte) (err error) {

Callers

nothing calls this directly

Calls 1

WriteDirectMethod · 0.65

Tested by

no test coverage detected