7#ifndef GHOSTTY_VT_ALLOCATOR_H
8#define GHOSTTY_VT_ALLOCATOR_H
114 void* (*alloc)(
void *ctx,
size_t len, uint8_t alignment, uintptr_t ret_addr);
134 bool (*
resize)(
void *ctx,
void *memory,
size_t memory_len, uint8_t alignment,
size_t new_len, uintptr_t ret_addr);
161 void* (*remap)(
void *ctx,
void *memory,
size_t memory_len, uint8_t alignment,
size_t new_len, uintptr_t ret_addr);
177 void (*
free)(
void *ctx,
void *memory,
size_t memory_len, uint8_t alignment, uintptr_t ret_addr);
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)
bool(* resize)(void *ctx, void *memory, size_t memory_len, uint8_t alignment, size_t new_len, uintptr_t ret_addr)
void(* free)(void *ctx, void *memory, size_t memory_len, uint8_t alignment, uintptr_t ret_addr)
const GhosttyAllocatorVtable * vtable