From 550fdf13521f48f1894caaf7f27b905b9632c467 Mon Sep 17 00:00:00 2001 From: mohanson Date: Mon, 24 Feb 2025 20:27:14 +0800 Subject: [PATCH] Add documents for DataLocation --- script/src/types.rs | 4 ++++ 1 file changed, 4 insertions(+) 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, }