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

Method ClockSequence

time.go:139–141  ·  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

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

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