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

Method DecodeMapHeader

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

Source from the content-addressed store, hash-verified

88}
89
90func (d *Decoder) DecodeMapHeader() (uint64, error) {
91 return d.decodeOfType(TypeMap)
92}
93
94func (d *Decoder) decodeBytesOfType(expected Type) ([]byte, error) {
95 n, err := d.decodeOfType(expected)

Callers 9

parseIndexSectionFunction · 0.95
parseSignaturesSectionFunction · 0.95
decodeSignedSubsetFunction · 0.95
decodeCborHeadersFunction · 0.80
decodeSubsetHashesFunction · 0.80
decodeRequestMapMethod · 0.80
decodeResponseMapMethod · 0.80

Calls 1

decodeOfTypeMethod · 0.95

Tested by

no test coverage detected