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

Method WriteTo

go/bundle/encoder.go:370–376  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

368}
369
370func (is *indexSection) WriteTo(w io.Writer) (int64, error) {
371 if is.bytes == nil {
372 panic("indexSection must be Finalize()-d before calling Bytes()")
373 }
374 n, err := w.Write(is.bytes)
375 return int64(n), err
376}
377
378// staging area for writing responses section
379type responsesSection struct {

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected