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

Method Next

nocopy_linkbuffer.go:891–895  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

889}
890
891func (node *linkBufferNode) Next(n int) (p []byte) {
892 off := node.off
893 node.off += n
894 return node.buf[off:node.off:node.off]
895}
896
897func (node *linkBufferNode) Peek(n int) (p []byte) {
898 return node.buf[node.off : node.off+n : node.off+n]

Callers 1

ReferMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected