libghostty
Loading...
Searching...
No Matches
GhosttyBuffer Struct Reference

#include <ghostty/vt/types.h>

Data Fields

uint8_t * ptr
size_t cap
size_t len

Detailed Description

A caller-provided byte buffer.

APIs that write to this type use len for the number of bytes written on GHOSTTY_SUCCESS and the required byte capacity on GHOSTTY_OUT_OF_SPACE.

Definition at line 236 of file types.h.

Field Documentation

◆ cap

size_t cap

Capacity of ptr in bytes.

Definition at line 241 of file types.h.

◆ len

size_t len

Bytes written on success, or required byte capacity on GHOSTTY_OUT_OF_SPACE.

Definition at line 244 of file types.h.

◆ ptr

uint8_t* ptr

Destination buffer for bytes. May be NULL when cap is 0 to query required size.

Definition at line 238 of file types.h.


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