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

Owns the temporary storage used by compression workspace. 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. Output is borrowed until the next call or destruction; never queue it without copying. The caller serializes access to the workspace. More...

#include <include/ascii-chat/network/compression.h>

Data Fields

void * codec
buffer_workspace_t output

Detailed Description

Owns the temporary storage used by compression workspace. 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. Output is borrowed until the next call or destruction; never queue it without copying. The caller serializes access to the workspace.

Zero-initialized worker-owned zstd context and reusable output storage.

Definition at line 156 of file compression.h.

Field Documentation

◆ codec

void* compression_workspace_t::codec

Definition at line 157 of file compression.h.

Referenced by compress_workspace(), and compression_workspace_destroy().

◆ output

buffer_workspace_t compression_workspace_t::output

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