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

Method WriteString

http.go:1688–1692  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1686}
1687
1688func (w *statsWriter) WriteString(s string) (int, error) {
1689 n, err := w.w.Write(s2b(s))
1690 w.bytesWritten += int64(n)
1691 return n, err
1692}
1693
1694func acquireStatsWriter(w io.Writer) *statsWriter {
1695 v := statsWriterPool.Get()

Callers 15

AppendBodyStringMethod · 0.45
SetBodyStringMethod · 0.45
AppendBodyStringMethod · 0.45
TestServerNameFunction · 0.45
TestServerErrSmallBufferFunction · 0.45
TestServerServeTLSEmbedFunction · 0.45

Calls 2

s2bFunction · 0.70
WriteMethod · 0.65