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

Function createDecoder

go/signedexchange/mice/mice_test.go:239–242  ·  view source on GitHub ↗
(enc Encoding, input, proof []byte)

Source from the content-addressed store, hash-verified

237}
238
239func createDecoder(enc Encoding, input, proof []byte) (io.Reader, error) {
240 digest := enc.FormatDigestHeader(proof)
241 return enc.NewDecoder(bytes.NewReader(input), digest, MaxRecordSize)
242}
243
244func decodeAll(enc Encoding, input, proof []byte) ([]byte, error) {
245 dec, err := createDecoder(enc, input, proof)

Callers 5

decodeAllFunction · 0.85
TestDecodeEmptyDraft02Function · 0.85
TestDecodeRecordSizeZeroFunction · 0.85

Calls 2

FormatDigestHeaderMethod · 0.80
NewDecoderMethod · 0.80

Tested by

no test coverage detected