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

◆ plm_buffer_discard_read_bytes()

void fl::third_party::plm_buffer_discard_read_bytes ( plm_buffer_t * self)

Definition at line 951 of file pl_mpeg.hpp.

951 {
952 size_t byte_pos = self->bit_index >> 3;
953 if (byte_pos == self->length) {
954 self->bit_index = 0;
955 self->length = 0;
956 }
957 else if (byte_pos > 0) {
958 memmove(self->bytes, self->bytes + byte_pos, self->length - byte_pos);
959 self->bit_index -= byte_pos << 3;
960 self->length -= byte_pos;
961 }
962}
void * memmove(void *dest, const void *src, size_t n) FL_NOEXCEPT

References FL_NOEXCEPT, and fl::memmove().

Referenced by plm_buffer_write(), and plm_video_decode().

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