def _parsePayload(self, data):
        '''Parse data and extract this cell's fields.

        Fill in this cell's attributes.

        :param str data: bytes to parse
        '''
        start, end = self.payloadRange()
        offset = start

        self.versions = []
        while offset < end:
            v = struct.unpack('!H', data[offset:offset + VERSIONS_LEN])[0]
            if v not in CONN_DEFS.KNOWN_LINK_PROTOCOLS:
                msg = "VersionsCell claims to support an unknown Link "
                msg += "Protocol version {}.".format(v)
                raise BadPayloadData(msg)
            self.versions.append(v)
            offset += VERSIONS_LEN
dataset/ETHPy150Open nskinkel/oppy/oppy/cell/varlen.py/VersionsCell._parsePayload/original