ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
frame_t Struct Reference

One variable-length payload in the video ring buffer. 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
 Owning frame payload; release with buffer_release() after reading.

Detailed Description

One variable-length payload in the video ring buffer.

data contains the payload and size tells consumers exactly how many bytes are valid. magic lets the ring-buffer code distinguish a live slot from a corrupted or released one; frame data is owned by the containing buffer and is not NUL-terminated text.

Definition at line 393 of file ringbuffer.h.

Field Documentation

◆ data

char* frame_t::data

Owning frame payload; release with buffer_release() after reading.

Definition at line 399 of file ringbuffer.h.

Referenced by framebuffer_clear(), framebuffer_read_frame(), and framebuffer_write_frame().

◆ magic

uint64_t frame_t::magic

Magic number to detect corruption (FRAME_MAGIC when valid).

Definition at line 395 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 397 of file ringbuffer.h.

Referenced by framebuffer_read_frame().


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