Skip to content

Commit

Permalink
Add more documents
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Feb 26, 2025
1 parent 3bb6b01 commit 0dcf7dc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion script/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,18 @@ where

/// When the vm is initialized, arguments are loaded onto the stack.
/// This enum specifies how to locate these arguments.
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
pub enum VmArgs {
Reader { vm_id: u64, argc: u64, argv: u64 },
/// Represents reading arguments from other vm.
Reader {
/// An identifier for the virtual machine/process.
vm_id: u64,
/// The number of arguments provided.
argc: u64,
/// The pointer of the actual arguments.
argv: u64,
},
/// Represents reading arguments from a vector.
Vector(Vec<Bytes>),
}

Expand Down

0 comments on commit 0dcf7dc

Please sign in to comment.