libghostty-vt 1.0.0
Loading...
Searching...
No Matches
allocator.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <ghostty/vt/types.h>

Go to the source code of this file.

Data Structures

struct  GhosttyAllocatorVtable
struct  GhosttyAllocator

Typedefs

typedef void *(* GhosttyAllocatorAllocFn) (void *ctx, size_t len, uint8_t alignment, uintptr_t ret_addr)
typedef bool(* GhosttyAllocatorResizeFn) (void *ctx, void *memory, size_t memory_len, uint8_t alignment, size_t new_len, uintptr_t ret_addr)
typedef void *(* GhosttyAllocatorRemapFn) (void *ctx, void *memory, size_t memory_len, uint8_t alignment, size_t new_len, uintptr_t ret_addr)
typedef void(* GhosttyAllocatorFreeFn) (void *ctx, void *memory, size_t memory_len, uint8_t alignment, uintptr_t ret_addr)

Functions

GHOSTTY_API uint8_t * ghostty_alloc (const GhosttyAllocator *allocator, size_t len)
GHOSTTY_API void ghostty_free (const GhosttyAllocator *allocator, uint8_t *ptr, size_t len)

Detailed Description

Memory management interface for libghostty-vt.

Definition in file allocator.h.