Package binding contains import and export utilities.
const ( VectorIndexLastImport = -5 VectorIndexMemoryAddr = -4 VectorIndexCurrentMemory = -3 VectorIndexGrowMemory = -2 VectorIndexTrapHandler = -1 )
Well-known indexes of the import vector. Import function addresses precede the current memory size.
EntryFunc looks up an export function which is suitable as an entry point. Its result type must be void or i32, and it must not take any parameters.
IsEntryFuncType checks if the signature is suitable for an entry function.
IsStartFuncType checks if the signature is suitable for a start function.
ImportResolver maps symbols to library function indexes and constant values.
ResolveFunc returns a non-negative library function index.
ResolveGlobal returns a bit pattern the interpretation of which depends on the scalar type.
LibraryImportResolver maps symbols to vector indexes.
ResolveFunc returns a negative vector index. The vector is addressed from the end. VectorIndexLastImport is the largest valid index which ResolveFunc can return.