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

Method encodeMapHeader

go/internal/cbor/encoder.go:154–156  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

152}
153
154func (e *Encoder) encodeMapHeader(n int) error {
155 return e.encodeTypedUint(TypeMap, uint64(n))
156}
157
158func (e *Encoder) EncodeBool(b bool) error {
159 ai := byte(0)

Callers 1

EncodeMapMethod · 0.95

Calls 1

encodeTypedUintMethod · 0.95

Tested by

no test coverage detected