@wasmcloud/actor-core
v0.1.2
Published
wasmCloud Core Actor Interface
Keywords
Readme
wasmCloud Core Actor Interface
Core operations for wasmCloud actors. All wasmCloud actors must respond to the core health request message.
Core AssemblyScript Actor Code
// Boilerplate code for waPC. Do not remove.
import { handleCall, handleAbort } from "@wapc/as-guest";
export function __guest_call(operation_size: usize, payload_size: usize): bool {
return handleCall(operation_size, payload_size);
}
// Abort function
function abort(
message: string | null,
fileName: string | null,
lineNumber: u32,
columnNumber: u32
): void {
handleAbort(message, fileName, lineNumber, columnNumber);
}