Skip to content

Commit

Permalink
Add documents for DataLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Feb 25, 2025
1 parent 33d4201 commit 550fdf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,14 @@ pub enum VmState {
WaitForRead(ReadState),
}

/// Used to specify the location of script data.
#[derive(Clone, Debug)]
pub struct DataLocation {
/// A pointer to the data.
pub data_piece_id: DataPieceId,
/// Data offset.
pub offset: u64,
/// Data length.
pub length: u64,
}

Expand Down

0 comments on commit 550fdf1

Please sign in to comment.