Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Dec 19, 2023
1 parent 65b2453 commit d279597
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions internal/wasm_imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,23 @@ package internal
// Imports `nextCommand` from the host, which retrieves
// the next command for a processor.
//
// The arguments are a pointer to the address where
// the command should be written and the size of
// the allocated memory.
// The arguments are:
// (1) a pointer to the address where the command should be written
// (2) the size of allocated memory.
//
// The return value should be the number of bytes written,
// or an error code.
// The return value can be 0 (for a successful reply) or an error code.
//
//go:wasmimport env nextCommand
func _nextCommand(ptr, size uint32) uint32

// Imports `reply` from the host, which informs
// the host about the reply for the previous command.
//
// The arguments are a pointer to the address where
// the reply will be written and the size of
// the allocated memory.
// The arguments are:
// (1) a pointer to the address where the reply should be written
// (2) the size of allocated memory.
//
// The return values is an error code.
// The return value can be 0 (for a successful reply) or an error code.
//
//go:wasmimport env reply
func _reply(ptr, size uint32)

0 comments on commit d279597

Please sign in to comment.