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 280 of file types.h.

Field Documentation

◆ cap

size_t cap

Capacity of ptr in bytes.

Definition at line 285 of file types.h.

◆ len

size_t len

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

Definition at line 288 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 282 of file types.h.


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