wasm_utils

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPtrSize

func ExtractPtrSize(ptrSize uint64) (uint32, uint32)

func PtrSize

func PtrSize(ptr, size uint32) uint64

func StringToPtr

func StringToPtr(s string) (uint32, uint32)

StringToPtr returns a pointer and size pair for the given string in a way compatible with WebAssembly numeric types. The returned pointer aliases the string hence the string must be kept alive until ptr is no longer needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL