MCPcopy Create free account
hub / github.com/WICG/webpackage / ReadByte

Method ReadByte

go/internal/cbor/decoder.go:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (d *Decoder) ReadByte() (byte, error) {
19 b := make([]byte, 1)
20 if _, err := io.ReadFull(d.r, b); err != nil {
21 return 0, err
22 }
23 return b[0], nil
24}
25
26func (d *Decoder) decodeTypedUint() (Type, uint64, error) {
27 const (

Callers 2

decodeTypedUintMethod · 0.95
loadResponseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected