Documentation ¶
Index ¶
- func BytesToPtr(b []byte) (uint32, uint32)
- func GetString(fn func(ptr uint32, limit BufLimit) (len uint32)) string
- func SendAndGetUint64(input_ptr uint32, input_size uint32, ...) uint64
- func StringToPtr(s string) (uint32, uint32)
- func Update(fn func(ptr uint32, limit BufLimit) (len uint32), updater func([]byte) error) error
- type BufLimit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToPtr ¶
BytesToPtr returns a pointer and size pair for the given byte slice in a way compatible with WebAssembly numeric types. The returned pointer aliases the slice hence it must be kept alive until ptr is no longer needed.
func SendAndGetUint64 ¶
func StringToPtr ¶
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 it must be kept alive until ptr is no longer needed.
Types ¶
Click to show internal directories.
Click to hide internal directories.