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

Method ReadString

nocopy.go:65–65  ·  view source on GitHub ↗

ReadString is a faster implementation of Next when a string needs to be returned. It replaces: var p, err = Next(n) return string(p), err

(n int)

Source from the content-addressed store, hash-verified

63 // return string(p), err
64 //
65 ReadString(n int) (s string, err error)
66
67 // ReadBinary is a faster implementation of Next when it needs to
68 // return a copy of the slice that is not shared with the underlying layer.

Callers 5

ReadStringMethod · 0.65
TestOnConnectWriteFunction · 0.65
ReadStringMethod · 0.65
ReadStringMethod · 0.65

Implementers 3

zcReadernocopy_readwriter.go
UnsafeLinkBuffernocopy_linkbuffer.go
connectionconnection_impl.go

Calls

no outgoing calls

Tested by 2

TestOnConnectWriteFunction · 0.52