ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
frame_t Struct Reference

Frame structure that stores both data and actual size. More...

#include <include/ascii-chat/ringbuffer.h>

Data Fields

uint64_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 383 of file ringbuffer.h.

Field Documentation

◆ data

char* frame_t::data

Pointer to frame data (not owned by this struct)

Definition at line 389 of file ringbuffer.h.

Referenced by framebuffer_clear(), and framebuffer_write_frame().

◆ magic

uint64_t frame_t::magic

Magic number to detect corruption (FRAME_MAGIC when valid)

Definition at line 385 of file ringbuffer.h.

Referenced by framebuffer_clear(), and framebuffer_write_frame().

◆ size

size_t frame_t::size

Actual size of frame data in bytes.

Definition at line 387 of file ringbuffer.h.

Referenced by framebuffer_clear(), and framebuffer_write_frame().


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