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

#include <ghostty/vt/types.h>

Data Fields

const uint8_t * ptr
size_t len

Detailed Description

A borrowed byte string (pointer + length).

The memory is not owned by this struct. The pointer is only valid for the lifetime documented by the API that produces or consumes it. Empty strings produced by the library have a non-NULL pointer to valid storage.

Examples
c-vt-build-info/src/main.c, c-vt-paste/src/main.c, and c-vt-search/src/main.c.

Definition at line 276 of file types.h.

Field Documentation

◆ len

size_t len

Length of the string in bytes.

Examples
c-vt-build-info/src/main.c, and c-vt-paste/src/main.c.

Definition at line 281 of file types.h.

◆ ptr

const uint8_t* ptr

Pointer to the string bytes.

Examples
c-vt-build-info/src/main.c, and c-vt-paste/src/main.c.

Definition at line 278 of file types.h.


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