lib/logstash/inputs/ganglia/xdr.rb
# Opaque data of length n, padded to a multiple of 4 bytes
Opaque data of length n, padded to a multiple of 4 bytes
Opaque data of length n padded to a multiple of 4 bytes
def bytes(n)
            align = n % 4
            if align == 0 then
                len = n
            else
                len = n + (4-align)
            end
            bytes = _read_type(len, "opaque of length #{n}")
            (1..(4-align)).each { bytes.chop! } if align != 0
            bytes
        end
def bytes ( n ) align = n % 4 if align == 0 then len = n else len = n + ( 4 - align ) end bytes = _read_type ( len , "opaque of length #{n}" ) ( 1 .. ( 4 - align ) ) . each { bytes . chop! } if align != 0 bytes end
Opaque data of length n, padded to a multiple of 4 bytes
Opaque data of length n padded to a multiple of 4 bytes
# Data length is n padded to a multiple of 4 # Remove padding if required
n
<not_specific>