MCPcopy
hub / github.com/google/uuid / ClockSequence

Method ClockSequence

time.go:132–134  ·  view source on GitHub ↗

ClockSequence returns the clock sequence encoded in uuid. The clock sequence is only well defined for version 1 and 2 UUIDs.

()

Source from the content-addressed store, hash-verified

130// ClockSequence returns the clock sequence encoded in uuid.
131// The clock sequence is only well defined for version 1 and 2 UUIDs.
132func (uuid UUID) ClockSequence() int {
133 return int(binary.BigEndian.Uint16(uuid[8:10])) & 0x3fff
134}

Callers 3

TestClockSeqFunction · 0.95
TestVersion1Function · 0.95
TestVersion6Function · 0.80

Calls

no outgoing calls

Tested by 3

TestClockSeqFunction · 0.76
TestVersion1Function · 0.76
TestVersion6Function · 0.64