MCPcopy
hub / github.com/valyala/fasthttp / Write

Method Write

stackless/writer.go:143–148  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

141}
142
143func (w *xWriter) Write(p []byte) (int, error) {
144 if w.bb == nil {
145 w.bb = bufferPool.Get()
146 }
147 return w.bb.Write(p)
148}
149
150func (w *xWriter) Reset() {
151 if w.bb != nil {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected