diff --git a/script/src/types.rs b/script/src/types.rs index a7c9cdfbac..127919f786 100644 --- a/script/src/types.rs +++ b/script/src/types.rs @@ -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, }