File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public struct SimpleStruct
8484 public int Int32 ;
8585}
8686
87- [GenerateStack ]
87+ [GenerateList ]
8888[GenerateWrapper ]
8989public class SimpleClass
9090{
@@ -143,13 +143,13 @@ unsafe
143143 }// return memory
144144
145145 var item = new Struct .SimpleClassWrapper (memory .Start , false );
146- var stackOfSimpleClass = new Struct .StackOfSimpleClass ((nuint )100 , & memory );// get memory
146+ var listOfSimpleClass = new Struct .ListOfSimpleClass ((nuint )100 , & memory );// get memory
147147 for (int i = 0 ; i < 100 ; i ++ )
148148 {
149- item .ChangePtr (stackOfSimpleClass . TopFuture ());
149+ item .ChangePtr (listOfSimpleClass . GetFuture ());
150150 item .Int32 = i ;
151151 item .Int64 = i * 2 ;
152- stackOfSimpleClass . PushFuture ();
152+ listOfSimpleClass . AddFuture ();
153153 }
154154 }// free all memory
155155 }
You can’t perform that action at this time.
0 commit comments