File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public struct JobStruct
5959// Stack of pointers
6060unsafe
6161{
62- using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .GetSize () + (nuint )sizeof (IntPtr )))
62+ using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .SizeOf + (nuint )sizeof (IntPtr )))
6363 {
6464 using var stack = new StackMemoryCollections .Struct .StackOfIntPtr (1 , & memory );
6565 {
@@ -75,10 +75,10 @@ unsafe
7575
7676``` C#
7777// Stack of structures
78- // All alocate memory = JobStructHelper.GetSize() * (nuint)100)
78+ // All alocate memory = JobStructHelper.SizeOf * (nuint)100)
7979unsafe
8080{
81- using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .GetSize () * (nuint )100 ))// allocate memory
81+ using (var memory = new StackMemoryCollections .Struct .StackMemory (JobStructHelper .SizeOf * (nuint )100 ))// allocate memory
8282 {
8383 var item = new JobStruct (0 , 0 );
8484
You can’t perform that action at this time.
0 commit comments