def decode_network_number(ptype, plen, buf):
 return number.unpack_from(buf, header.size)[0]

def decode_network_number ( ptype , plen , buf ) : return number . unpack_from ( buf , header . size ) [ 0 ]
decodes a number from collectd network format .