lib/logstash/inputs/ganglia/xdr.rb
# Opaque data, padded to a multiple of 4 bytes
Opaque data, padded to a multiple of 4 bytes
Opaque data padded to a multiple of 4 bytes
def bytes(val)
            val = val.to_s
            while val.length % 4 != 0 do
                val += "\0"
            end
            @io.write(val)
        end
def bytes ( val ) val = val . to_s while val . length % 4 != 0 do val += "\0" end @io . write ( val ) end
Opaque data, padded to a multiple of 4 bytes
Opaque data padded to a multiple of 4 bytes
# Pad with zeros until length is a multiple of 4
val
<not_specific>