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

◆ plm_buffer_create_with_memory()

plm_buffer_t * fl::third_party::plm_buffer_create_with_memory ( uint8_t * bytes,
size_t length,
int free_when_done )

Definition at line 824 of file pl_mpeg.hpp.

824 {
826 fl::memset(self, 0, sizeof(plm_buffer_t));
827 self->capacity = length;
828 self->length = length;
829 self->total_size = length;
830 self->free_when_done = free_when_done;
831 self->bytes = bytes;
834 return self;
835}
fl::UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
@ PLM_BUFFER_MODE_FIXED_MEM
Definition pl_mpeg.hpp:721
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 FALSE
Definition pl_mpeg.hpp:175

References fl::third_party::plm_buffer_t::bytes, fl::third_party::plm_buffer_t::capacity, fl::third_party::plm_buffer_t::discard_read_bytes, FALSE, FL_NOEXCEPT, fl::third_party::plm_buffer_t::free_when_done, fl::third_party::plm_buffer_t::length, length(), fl::memset(), fl::third_party::plm_buffer_t::mode, PLM_BUFFER_MODE_FIXED_MEM, PLM_MALLOC, and fl::third_party::plm_buffer_t::total_size.

Referenced by plm_create_with_memory().

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