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

Method encode

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

Source from the content-addressed store, hash-verified

212func (EncodeFixedNegInt) len() int { return 9 }
213
214func (v EncodeFixedNegInt) encode(p []byte) int {
215 p[0] = compose(majorTypeNegInt, minorArg8)
216 binary.BigEndian.PutUint64(p[1:], uint64(v-1))
217 return 9
218}

Callers

nothing calls this directly

Calls 1

composeFunction · 0.70

Tested by

no test coverage detected