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

The useful part of buffer header is in next, domain, allocation, data: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path. More...

Data Fields

mutex_t mutex
buffer_domain_config_t config
buffer_stats_t stats
buffer_header_t * bins [17]
bool closing

Detailed Description

The useful part of buffer header is in next, domain, allocation, data: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path.

Owns the temporary storage used by buffer domain. The data pointers and size or cursor fields describe the live portion of the allocation; callers must use the type's cleanup path when the buffer or queue is no longer needed.

Definition at line 52 of file buffer.c.

Field Documentation

◆ bins

buffer_header_t* buffer_domain::bins[17]

Definition at line 56 of file buffer.c.

Referenced by buffer_acquire(), and buffer_unref().

◆ closing

bool buffer_domain::closing

Definition at line 57 of file buffer.c.

Referenced by buffer_acquire(), buffer_domain_close(), and buffer_unref().

◆ config

buffer_domain_config_t buffer_domain::config

Definition at line 54 of file buffer.c.

Referenced by buffer_acquire(), buffer_domain_create(), and buffer_unref().

◆ mutex

◆ stats

buffer_stats_t buffer_domain::stats

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