Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
52
func
(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
60
func
(m Map) len() int {
61
total := itoarglen(len(m))
Callers
nothing calls this directly
Calls
2
encodeArg
Function · 0.85
encode
Method · 0.65
Tested by
no test coverage detected