|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Frame structure that stores both data and actual size. More...
#include <lib/ringbuffer.h>
Data Fields | |
| uint32_t | magic |
| Magic number to detect corruption (FRAME_MAGIC when valid) | |
| size_t | size |
| Actual size of frame data in bytes. | |
| char * | data |
| Pointer to frame data (not owned by this struct) | |
Frame structure that stores both data and actual size.
Stores frame data along with its actual size, eliminating the need for fixed-size buffers and null-terminator scanning. Uses magic number validation for corruption detection.
Definition at line 382 of file ringbuffer.h.
| char* frame_t::data |
Pointer to frame data (not owned by this struct)
Definition at line 388 of file ringbuffer.h.
Referenced by framebuffer_clear(), framebuffer_read_frame(), and framebuffer_write_frame().
| uint32_t frame_t::magic |
Magic number to detect corruption (FRAME_MAGIC when valid)
Definition at line 384 of file ringbuffer.h.
Referenced by framebuffer_clear(), framebuffer_read_frame(), and framebuffer_write_frame().
| size_t frame_t::size |
Actual size of frame data in bytes.
Definition at line 386 of file ringbuffer.h.
Referenced by framebuffer_clear(), framebuffer_read_frame(), and framebuffer_write_frame().