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

Method encode

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

Source from the content-addressed store, hash-verified

18}
19
20func (i NegInt) encode(p []byte) int {
21 return encodeArg(majorTypeNegInt, uint64(i-1), p)
22}
23
24func (s Slice) len() int {
25 return itoarglen(len(s)) + len(s)

Callers

nothing calls this directly

Calls 1

encodeArgFunction · 0.85

Tested by

no test coverage detected