lib/logstash/inputs/ganglia/xdr.rb
# A string, preceeded by its length
A string, preceeded by its length
A string preceeded by its length
def string(val)
            val = val.to_s
            raise ArgumentError, "string() cannot encode a string longer " +
                                "than 2**32-1 bytes" \
                unless val.length <= 2**32-1
            self.uint32(val.length).bytes(val)
        end
def string ( val ) val = val . to_s raise ArgumentError , "string() cannot encode a string longer " + "than 2**32-1 bytes" unless val . length <= 2 ** 32 - 1 self . uint32 ( val . length ) . bytes ( val ) end
A string, preceeded by its length
A string preceeded by its length
val
<not_specific>