(pkt)
return row
Return a row of data
Return a row of data
Return a row of data
def get_row(pkt):
    """Return a row of data"""
    row = []
    tmp = ''
    fields = endian_int(pkt[0:2])
    pkt = pkt[2:]
    for field in xrange(fields):
        clen = endian_int(pkt[0:4])
        if clen == 4294967295:
            # indicates an empty column
            row.append('')
            continue

        pkt = pkt[4:]
        for i in xrange(clen):
            tmp += pkt[i].decode('hex')
        row.append(tmp)
        pkt = pkt[clen:]
        tmp = ''

    return row
def get_row ( pkt ) : row = [ ] tmp = '' fields = endian_int ( pkt [ 0 : 2 ] ) pkt = pkt [ 2 : ] for field in xrange ( fields ) : clen = endian_int ( pkt [ 0 : 4 ] ) if clen == 4294967295 : # indicates an empty column row . append ( '' ) continue pkt = pkt [ 4 : ] for i in xrange ( clen ) : tmp += pkt [ i ] . decode ( 'hex' ) row . append ( tmp ) pkt = pkt [ clen : ] tmp = '' return row