pbuf_alloced_custom() function
Initialize a custom pbuf (already allocated). Example of custom pbuf usage: zerocopyrx
Arguments
length
size of the pbuf's payload
type
type of the pbuf (only used to treat the pbuf accordingly, as this function allocates no memory)
p
pointer to the custom pbuf to initialize (already allocated)
payload_mem
pointer to the buffer that is used for payload and headers, must be at least big enough to hold 'length' plus the header size, may be NULL if set later. ATTENTION: The caller is responsible for correct alignment of this buffer!!
payload_mem_len
the size of the 'payload_mem' buffer, must be at least big enough to hold 'length' plus the header size
pbuf_alloced_custom() calls 1 function:
![]()
pbuf_alloced_custom()
pbuf_alloced_custom():
![]()
pbuf_alloced_custom()