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§
- abort
Message ⚠ - Abort with
message
- abort
Subjective ⚠ - call⚠
- Call a service, store the return value into result, and return the result size
- checkout
Subjective ⚠ - commit
Subjective ⚠ - getCurrent
Action ⚠ - 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 returnkey_size
- getResult⚠
- Copy
min(dest_size, resultSize - offset)
bytes fromresult + offset
intodest
and returnresultSize
- getSequential⚠
- Get a sequentially-numbered record
- kvGet⚠
- Get a key-value pair, if any
- kvGreater
Equal ⚠ - Get the first key-value pair which is greater than or equal to the provided key
- kvLess
Than ⚠ - 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
- socket
Auto ⚠Close - Tells the current transaction/query/callback context to take or release ownership of a socket.
- socket
Send ⚠ - Send a message to a socket
- write
Console ⚠ - Write
message
to console