pointer to the custom pbuf to initialize (already allocated)
payload_mem
void*
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!!