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_buffer Struct Reference

Growable byte buffer for assembling one complete terminal frame. More...

Data Fields

char * data
 Allocated buffer.
size_t len
 Current content length.
size_t capacity
 Allocated capacity.

Detailed Description

Growable byte buffer for assembling one complete terminal frame.

Growable byte buffer for assembling one complete terminal frame

data owns the accumulated ANSI and text bytes, len is the number ready to write, and capacity is the allocation size. Rendering code appends to the buffer and flushes it in one write to avoid terminal flicker; reset keeps the allocation so the next frame can reuse it.

Definition at line 36 of file frame_buffer.c.

Field Documentation

◆ capacity

size_t frame_buffer::capacity

Allocated capacity.

Definition at line 39 of file frame_buffer.c.

Referenced by frame_buffer_append(), frame_buffer_create(), and frame_buffer_printf().

◆ data

char* frame_buffer::data

◆ len

size_t frame_buffer::len

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