ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
frame_t Struct Reference

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)
 

Detailed Description

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.

Field Documentation

◆ data

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().

◆ magic

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

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().


The documentation for this struct was generated from the following file: