Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
func
NewDecoder(r io.Reader) *Decoder {
15
return
&Decoder{r}
16
}
17
18
func
(d *Decoder) ReadByte() (byte, error) {
19
b := make([]byte, 1)
Callers
13
decodeSectionLengthsCBOR
Function · 0.92
parseIndexSection
Function · 0.92
parseIndexSectionWithVariants
Function · 0.92
parsePrimarySection
Function · 0.92
parseManifestSection
Function · 0.92
parseSignaturesSection
Function · 0.92
loadMetadata
Function · 0.92
loadResponse
Function · 0.92
decodeSignedSubset
Function · 0.92
ReadExchangePrologue
Function · 0.92
ReadCertChain
Function · 0.92
TestDecodeByteString
Function · 0.85
Calls
no outgoing calls
Tested by
2
TestDecodeByteString
Function · 0.68
TestDecodeByteStringNotCrashing
Function · 0.68