pbuf_alloced_custom() function
Initialize a custom pbuf (already allocated). Example of custom pbuf usage: zerocopyrx
Arguments
l
header size
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
Examples
pbuf_alloced_custom() is referenced by
28 libraries and example projects.
Functions calling pbuf_alloced_custom()
Functions called by pbuf_alloced_custom()
pbuf_alloced_custom()
Data read by pbuf_alloced_custom()
Data written by pbuf_alloced_custom()
pbuf_alloced_custom()::offset pbuf_alloced_custom()::payload all items filtered out
pbuf_alloced_custom()
pbuf_alloced_custom()::payload all items filtered out
Type of pbuf_alloced_custom()
pbuf_alloced_custom()