File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,21 @@ use crate::library::Library;
8
8
use crate :: prelude:: BasicSnippet ;
9
9
use crate :: prelude:: TasmObject ;
10
10
11
- #[ derive( Clone , Debug , Default ) ]
12
- pub struct VerifyNdSiIntegrity < T : TasmObject + BFieldCodec + Clone + Debug > {
13
- _phantom_data : PhantomData < T > ,
11
+ /// Verify size-indicator integrity of preloaded data, return size.
12
+ ///
13
+ /// Crashes the VM if the structure in question is not entirely contained within
14
+ /// the non-deterministic section of memory as defined in the memory layout.
15
+ #[ derive( Clone , Debug ) ]
16
+ pub struct VerifyNdSiIntegrity < PreloadedData : TasmObject + BFieldCodec + Clone + Debug > {
17
+ _phantom_data : PhantomData < PreloadedData > ,
18
+ }
19
+
20
+ impl < T : TasmObject + BFieldCodec + Clone + Debug > Default for VerifyNdSiIntegrity < T > {
21
+ fn default ( ) -> Self {
22
+ Self {
23
+ _phantom_data : Default :: default ( ) ,
24
+ }
25
+ }
14
26
}
15
27
16
28
impl < T : TasmObject + BFieldCodec + Clone + Debug > BasicSnippet for VerifyNdSiIntegrity < T > {
You can’t perform that action at this time.
0 commit comments