MCPcopy Create free account
hub / github.com/aws/smithy-go / encode

Method encode

encoding/cbor/encode.go:52–58  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

50}
51
52func (l List) encode(p []byte) int {
53 off := encodeArg(majorTypeList, len(l), p)
54 for _, v := range l {
55 off += v.encode(p[off:])
56 }
57 return off
58}
59
60func (m Map) len() int {
61 total := itoarglen(len(m))

Callers

nothing calls this directly

Calls 2

encodeArgFunction · 0.85
encodeMethod · 0.65

Tested by

no test coverage detected