FastLED 3.9.15
Loading...
Searching...
No Matches

◆ plm_buffer_create_with_capacity()

plm_buffer_t * fl::third_party::plm_buffer_create_with_capacity ( size_t capacity)

Definition at line 837 of file pl_mpeg.hpp.

837 {
839 fl::memset(self, 0, sizeof(plm_buffer_t));
840 self->capacity = capacity;
841 self->free_when_done = TRUE;
842 self->bytes = (uint8_t *)PLM_MALLOC(capacity);
844 self->discard_read_bytes = TRUE;
845 return self;
846}
unsigned char uint8_t
Definition coder.h:209
enum plm_buffer_mode mode
Definition pl_mpeg.hpp:743
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
#define PLM_MALLOC(sz)
Definition pl_mpeg.hpp:179
#define TRUE
Definition pl_mpeg.hpp:174

References fl::third_party::plm_buffer_t::bytes, fl::third_party::plm_buffer_t::capacity, fl::third_party::plm_buffer_t::discard_read_bytes, FL_NOEXCEPT, fl::third_party::plm_buffer_t::free_when_done, fl::memset(), fl::third_party::plm_buffer_t::mode, PLM_BUFFER_MODE_RING, PLM_MALLOC, and TRUE.

Referenced by plm_buffer_create_for_appending(), plm_buffer_create_with_callbacks(), and plm_init_decoders().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: