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

Method ReadByte

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

ReadByte is a faster implementation of Next when a byte needs to be returned. It replaces: var p, err = Next(1) return p[0], err

()

Source from the content-addressed store, hash-verified

82 // return p[0], err
83 //
84 ReadByte() (b byte, err error)
85
86 // Slice returns a new Reader containing the Next n bytes from this Reader.
87 //

Callers 4

ReadByteMethod · 0.65
ReadByteMethod · 0.65
TestLinkBufferResetTailFunction · 0.65
ReadByteMethod · 0.65

Implementers 3

zcReadernocopy_readwriter.go
UnsafeLinkBuffernocopy_linkbuffer.go
connectionconnection_impl.go

Calls

no outgoing calls

Tested by 1

TestLinkBufferResetTailFunction · 0.52