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

Method encode

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

Source from the content-addressed store, hash-verified

198func (EncodeFixedUint) len() int { return 9 }
199
200func (v EncodeFixedUint) encode(p []byte) int {
201 p[0] = compose(majorTypeUint, minorArg8)
202 binary.BigEndian.PutUint64(p[1:], uint64(v))
203 return 9
204}
205
206// FixedUint encodes fixed-width NegInt values.
207//

Callers

nothing calls this directly

Calls 1

composeFunction · 0.70

Tested by

no test coverage detected