File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 3333
3434``` C#
3535// Marking a class/struct with attributes is all that is required of you.
36- [GenerateHelper ]
3736 [GenerateStack ]
3837[GenerateWrapper ]
3938public struct JobStruct
@@ -59,7 +58,7 @@ public struct JobStruct
5958// Stack of pointers
6059unsafe
6160{
62- using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .GetSize () + (nuint )sizeof (IntPtr )))
61+ using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .SizeOf + (nuint )sizeof (IntPtr )))
6362 {
6463 using var stack = new StackMemoryCollections .Struct .StackOfIntPtr (1 , & memory );
6564 {
@@ -75,10 +74,10 @@ unsafe
7574
7675``` C#
7776// Stack of structures
78- // All alocate memory = JobStructHelper.GetSize() * (nuint)100)
77+ // All alocate memory = JobStructHelper.SizeOf * (nuint)100)
7978unsafe
8079{
81- using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .GetSize () * (nuint )100 ))// allocate memory
80+ using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .SizeOf * (nuint )100 ))// allocate memory
8281 {
8382 var item = new JobStruct (0 , 0 );
8483
You can’t perform that action at this time.
0 commit comments