xStreamBufferCreateWithCaps() function
@endcond Creates a stream buffer with specific memory capabilities This function is similar to xStreamBufferCreate(), except that it allows the memory allocated for the stream buffer to have specific capabilities (e.g., MALLOC_CAP_INTERNAL).
Arguments
xBufferSizeBytes
The total number of bytes the stream buffer will be able to hold at any one time.
xTriggerLevelBytes
The number of bytes that must be in the stream buffer before unblocking
uxMemoryCaps
Memory capabilities of the stream buffer's memory (see esp_heap_caps.h)
Return value
Handle to the created stream buffer or NULL on failure.
Notes
A stream buffer created using this function must only be deleted using vStreamBufferDeleteWithCaps()
xStreamBufferCreateWithCaps() calls 1 function:
![]()
xStreamBufferCreateWithCaps()
xStreamBufferCreateWithCaps():
![]()
xStreamBufferCreateWithCaps()