nrfxlib API 2.8.99
|
void *(* nrf_rpc_tr_api::tx_buf_alloc) (const struct nrf_rpc_tr *transport, size_t *size) |
Function for allocation Tx buffer for packet sending.
This function must successfully return. If there is not enough memory, but it is possible to wait, then this function should wait. If the requested length is too long then this function should fail (for example with ASSERT).
Memory is deallocated by send
function or tx_buf_free
function.
[in] | transport | nRF RPC transport instance. |
[in,out] | size | Requested buffer size as input. Allocated buffer size as output. |
Allocated | buffer or NULL if buffer allocation is not possible. |