MCPcopy Index your code
hub / github.com/WICG/webpackage / writeSectionHeader

Function writeSectionHeader

go/bundle/encoder.go:537–540  ·  view source on GitHub ↗
(w io.Writer, numSections int)

Source from the content-addressed store, hash-verified

535}
536
537func writeSectionHeader(w io.Writer, numSections int) error {
538 enc := cbor.NewEncoder(w)
539 return enc.EncodeArrayHeader(numSections)
540}
541
542func writeFooter(w io.Writer, offset int) error {
543 const footerLength = 9

Callers 1

WriteToMethod · 0.85

Calls 2

EncodeArrayHeaderMethod · 0.95
NewEncoderFunction · 0.92

Tested by

no test coverage detected