Method: SimpleUUID::UUID#to_i

Defined in:
lib/simple_uuid.rb

#to_iObject



86
87
88
89
90
91
92
# File 'lib/simple_uuid.rb', line 86

def to_i
  ints = @bytes.unpack("NNNN")
  (ints[0] << 96) +
  (ints[1] << 64) +
  (ints[2] << 32) +
  ints[3]
end