MCPcopy Create free account
hub / github.com/imroc/req / readByte

Function readByte

internal/http2/frame.go:1432–1437  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

1430}
1431
1432func readByte(p []byte) (remain []byte, b byte, err error) {
1433 if len(p) == 0 {
1434 return nil, 0, io.ErrUnexpectedEOF
1435 }
1436 return p[1:], p[0], nil
1437}
1438
1439func readUint32(p []byte) (remain []byte, v uint32, err error) {
1440 if len(p) < 4 {

Callers 3

parseDataFrameFunction · 0.85
parseHeadersFrameFunction · 0.85
parsePushPromiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…