Method: UUID#raw_bytes

Defined in:
lib/cast_off/compile/namespace/uuid.rb

#raw_bytesObject



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/cast_off/compile/namespace/uuid.rb', line 47

def raw_bytes
  ret = String.new
  tmp = @num
  16.times do |i|
    x, y = tmp.divmod 256
    ret << y
    tmp = x
  end
  ret.reverse!
  ret
end