UNPKG

libxslt-wasm

Version:

JavaScript bindings for libxslt compiled to WebAssembly

15 lines (14 loc) 618 B
import { getNativeTypeSize } from "./internal/emscripten.js"; // 4 bytes by default, 8 bytes if `MEMORY64` is enabled // https://emscripten.org/docs/tools_reference/settings_reference.html#memory64 export const POINTER_SIZE = getNativeTypeSize("*"); /** * Emscripten represents a `ptr` as a `number` where `NULL` is `0`. This is true * for the output of any C functions and of the emitted TypeScript. * * Unfortunately, in WebAssembly, 0 is a valid location in memory. * * @remarks Every instance of 0 is not necessarily a null pointer; it can * indicate just a regular `int` */ export const NULL_POINTER = 0;