libghostty
Loading...
Searching...
No Matches
wasm.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_WASM_H
8#define GHOSTTY_VT_WASM_H
9
10#ifdef __wasm__
11
12#include <stddef.h>
13#include <stdint.h>
14
69
78
85void ghostty_wasm_free_opaque(void **ptr);
86
94uint8_t* ghostty_wasm_alloc_u8_array(size_t len);
95
103void ghostty_wasm_free_u8_array(uint8_t *ptr, size_t len);
104
112uint16_t* ghostty_wasm_alloc_u16_array(size_t len);
113
121void ghostty_wasm_free_u16_array(uint16_t *ptr, size_t len);
122
130
137void ghostty_wasm_free_u8(uint8_t *ptr);
138
146
153void ghostty_wasm_free_usize(size_t *ptr);
154
156
157#endif /* __wasm__ */
158
159#endif /* GHOSTTY_VT_WASM_H */
void ghostty_wasm_free_u16_array(uint16_t *ptr, size_t len)
void ** ghostty_wasm_alloc_opaque(void)
size_t * ghostty_wasm_alloc_usize(void)
void ghostty_wasm_free_usize(size_t *ptr)
uint8_t * ghostty_wasm_alloc_u8_array(size_t len)
uint16_t * ghostty_wasm_alloc_u16_array(size_t len)
uint8_t * ghostty_wasm_alloc_u8(void)
void ghostty_wasm_free_opaque(void **ptr)
void ghostty_wasm_free_u8(uint8_t *ptr)
void ghostty_wasm_free_u8_array(uint8_t *ptr, size_t len)