lib/logstash/inputs/ganglia/xdr.rb
# Opaque data, preceeded by its length
Opaque data, preceeded by its length
Opaque data preceeded by its length
def var_bytes(val)
            val = val.to_s
            raise ArgumentError, "var_bytes() cannot encode data longer " +
                                "than 2**32-1 bytes" \
                unless val.length <= 2**32-1
            self.string(val)
        end
def var_bytes ( val ) val = val . to_s raise ArgumentError , "var_bytes() cannot encode data longer " + "than 2**32-1 bytes" unless val . length <= 2 ** 32 - 1 self . string ( val ) end
Opaque data, preceeded by its length
Opaque data preceeded by its length
# While strings are still byte sequences, this is the same as a # string
val
<not_specific>