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

Method encode

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

Source from the content-addressed store, hash-verified

26}
27
28func (s Slice) encode(p []byte) int {
29 off := encodeArg(majorTypeSlice, len(s), p)
30 copy(p[off:], []byte(s))
31 return off + len(s)
32}
33
34func (s String) len() int {
35 return itoarglen(len(s)) + len(s)

Callers

nothing calls this directly

Calls 1

encodeArgFunction · 0.85

Tested by

no test coverage detected