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

Function NewDecoder

go/internal/cbor/decoder.go:14–16  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

12}
13
14func NewDecoder(r io.Reader) *Decoder {
15 return &Decoder{r}
16}
17
18func (d *Decoder) ReadByte() (byte, error) {
19 b := make([]byte, 1)

Callers 13

decodeSectionLengthsCBORFunction · 0.92
parseIndexSectionFunction · 0.92
parsePrimarySectionFunction · 0.92
parseManifestSectionFunction · 0.92
parseSignaturesSectionFunction · 0.92
loadMetadataFunction · 0.92
loadResponseFunction · 0.92
decodeSignedSubsetFunction · 0.92
ReadExchangePrologueFunction · 0.92
ReadCertChainFunction · 0.92
TestDecodeByteStringFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestDecodeByteStringFunction · 0.68