Skip to content

Commit cf81297

Browse files
Update README.md
1 parent 1afa75c commit cf81297

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public struct JobStruct
5959
//Stack of pointers
6060
unsafe
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)
7979
unsafe
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

0 commit comments

Comments
 (0)