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

Function readUint32

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

Source from the content-addressed store, hash-verified

1437}
1438
1439func readUint32(p []byte) (remain []byte, v uint32, err error) {
1440 if len(p) < 4 {
1441 return nil, 0, io.ErrUnexpectedEOF
1442 }
1443 return p[4:], binary.BigEndian.Uint32(p[:4]), nil
1444}
1445
1446type streamEnder interface {
1447 StreamEnded() bool

Callers 2

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…