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#include <ghostty/vt/types.h>
15
70
78GHOSTTY_API void** ghostty_wasm_alloc_opaque(void);
79
86GHOSTTY_API void ghostty_wasm_free_opaque(void **ptr);
87
95GHOSTTY_API uint8_t* ghostty_wasm_alloc_u8_array(size_t len);
96
104GHOSTTY_API void ghostty_wasm_free_u8_array(uint8_t *ptr, size_t len);
105
113GHOSTTY_API uint16_t* ghostty_wasm_alloc_u16_array(size_t len);
114
122GHOSTTY_API void ghostty_wasm_free_u16_array(uint16_t *ptr, size_t len);
123
130GHOSTTY_API uint8_t* ghostty_wasm_alloc_u8(void);
131
138GHOSTTY_API void ghostty_wasm_free_u8(uint8_t *ptr);
139
146GHOSTTY_API size_t* ghostty_wasm_alloc_usize(void);
147
154GHOSTTY_API void ghostty_wasm_free_usize(size_t *ptr);
155
157
158#endif /* __wasm__ */
159
160#endif /* GHOSTTY_VT_WASM_H */
GHOSTTY_API uint8_t * ghostty_wasm_alloc_u8_array(size_t len)
GHOSTTY_API uint8_t * ghostty_wasm_alloc_u8(void)
GHOSTTY_API void ghostty_wasm_free_u16_array(uint16_t *ptr, size_t len)
GHOSTTY_API void ** ghostty_wasm_alloc_opaque(void)
GHOSTTY_API void ghostty_wasm_free_usize(size_t *ptr)
GHOSTTY_API void ghostty_wasm_free_opaque(void **ptr)
GHOSTTY_API void ghostty_wasm_free_u8(uint8_t *ptr)
GHOSTTY_API uint16_t * ghostty_wasm_alloc_u16_array(size_t len)
GHOSTTY_API size_t * ghostty_wasm_alloc_usize(void)
GHOSTTY_API void ghostty_wasm_free_u8_array(uint8_t *ptr, size_t len)