Module native_raw

Source
Expand description

Raw native functions for services to use

This is the set of raw native functions (wasm imports). They are available for services to use directly, but we recommend using the Wrapped Native Functions instead.

Functions§

abortMessage
Abort with message
abortSubjective
call
Call a service, store the return value into result, and return the result size
checkoutSubjective
commitSubjective
getCurrentAction
Store the currently-executing action into result and return the result size
getKey
Copy min(dest_size, key_size) bytes of the most-recent key into dest and return key_size
getResult
Copy min(dest_size, resultSize - offset) bytes from result + offset into dest and return resultSize
getSequential
Get a sequentially-numbered record
kvGet
Get a key-value pair, if any
kvGreaterEqual
Get the first key-value pair which is greater than or equal to the provided key
kvLessThan
Get the key-value pair immediately-before provided key
kvMax
Get the maximum key-value pair which has key as a prefix
kvPut
Set a key-value pair
kvRemove
Remove a key-value pair if it exists
putSequential
Add a sequentially-numbered record
setRetval
Set the currently-executing action’s return value
socketAutoClose
Tells the current transaction/query/callback context to take or release ownership of a socket.
socketSend
Send a message to a socket
writeConsole
Write message to console