Skip to content

Commit 5b13f60

Browse files
author
Vyacheslav
committed
2 parents 3aab8a9 + 50e2174 commit 5b13f60

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Usage:
3333

3434
```C#
3535
//Marking a class/struct with attributes is all that is required of you.
36-
[GenerateHelper]
3736
[GenerateStack]
3837
[GenerateWrapper]
3938
public struct JobStruct
@@ -59,7 +58,7 @@ public struct JobStruct
5958
//Stack of pointers
6059
unsafe
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)
7978
unsafe
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

0 commit comments

Comments
 (0)