MCPcopy
hub / github.com/segmentio/ksuid / withSequenceNumber

Function withSequenceNumber

sequence.go:52–55  ·  view source on GitHub ↗
(id KSUID, n uint16)

Source from the content-addressed store, hash-verified

50}
51
52func withSequenceNumber(id KSUID, n uint16) KSUID {
53 binary.BigEndian.PutUint16(id[len(id)-2:], n)
54 return id
55}

Callers 2

NextMethod · 0.85
BoundsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…