class Integer

@private

Public Instance Methods

byte_string() click to toggle source
# File lib/xrbp/core_ext.rb, line 63
def byte_string
  bytes.reverse.pack("C*")
end
bytes() click to toggle source

return bytes

# File lib/xrbp/core_ext.rb, line 53
def bytes
  i = dup
  b = []
  until i == 0
    b << (i & 0xFF)
    i  = i >> 8
  end
  b
end
from_xrp_time() click to toggle source
# File lib/xrbp/core_ext.rb, line 73
def from_xrp_time
  XRBP.from_xrp_time(self)
end
to_int()
Alias for: to_int32
to_int32() click to toggle source
# File lib/xrbp/core_ext.rb, line 67
def to_int32
  self & (2**32-1)
end
Also aliased as: to_int