lib/logstash/inputs/ganglia/xdr.rb
# An unsigned 64-bit integer, big-endian
An unsigned 64-bit integer, big-endian
An unsigned 64 - bit integer big - endian
def uint64(val)
            raise ArgumentError, "uint64() requires an Integer argument" \
                unless val.is_a?(Integer)
            raise RangeError, "argument to uint64() must be in the range " +
                             "0 <= arg <= 2**64-1" \
                unless val >= 0 && val <= 2**64-1
            top = val >> 32
            bottom = val & (2**32 - 1)
            self.uint32(top).uint32(bottom)
        end
def uint64 ( val ) raise ArgumentError , "uint64() requires an Integer argument" unless val . is_a? ( Integer ) raise RangeError , "argument to uint64() must be in the range " + "0 <= arg <= 2**64-1" unless val >= 0 && val <= 2 ** 64 - 1 top = val >> 32 bottom = val & ( 2 ** 32 - 1 ) self . uint32 ( top ) . uint32 ( bottom ) end
An unsigned 64-bit integer, big-endian
An unsigned 64 - bit integer big - endian
# Output is big endian, so we can output the top and bottom 32 bits # independently, top first
val
<not_specific>