def encode_data(self):
        assert self.get_empty() is False
        self._data_encoded = True
        if self._block_allowed:
            data = self._encode_transfer_block_data()
        else:
            data = self._encode_transfer_data()
        return data
Initializes a Resource.
dataset/ETHPy150Open mbedmicro/pyOCD/pyOCD/pyDAPAccess/dap_access_usb.py/_Command.encode_data--crossover with--dataset/ETHPy150Open openstack/nova/nova/quota.py/BaseResource.__init__