MCPcopy Create free account
hub / github.com/dgrr/http2 / ReadFrom

Method ReadFrom

frameHeader.go:175–177  ·  view source on GitHub ↗

ReadFrom reads frame from Reader. This function returns read bytes and/or error. Unlike io.ReaderFrom this method does not read until io.EOF.

(br *bufio.Reader)

Source from the content-addressed store, hash-verified

173//
174// Unlike io.ReaderFrom this method does not read until io.EOF.
175func (f *FrameHeader) ReadFrom(br *bufio.Reader) (int64, error) {
176 return f.readFrom(br)
177}
178
179// TODO: Delete rb?
180func (f *FrameHeader) readFrom(br *bufio.Reader) (int64, error) {

Callers 2

ReadFrameFromFunction · 0.45
ReadFrameFromWithSizeFunction · 0.45

Calls 1

readFromMethod · 0.95

Tested by

no test coverage detected