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

Method encode

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

Source from the content-addressed store, hash-verified

36}
37
38func (s String) encode(p []byte) int {
39 off := encodeArg(majorTypeString, len(s), p)
40 copy(p[off:], []byte(s))
41 return off + len(s)
42}
43
44func (l List) len() int {
45 total := itoarglen(len(l))

Callers

nothing calls this directly

Calls 1

encodeArgFunction · 0.85

Tested by

no test coverage detected