-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
good first issueGood for newcomersGood for newcomerspriority: lowLow priorityLow prioritytechnical debtIt affects the difficulties of future developmentIt affects the difficulties of future development
Description
Instead of size variable use return AlignmentOf method from InteropMemoryHelper.
NoiseEngine/NoiseEngine/Interop/InteropArray.cs
Lines 63 to 67 in 98d8bfa
| public unsafe InteropArray(int length) { | |
| nuint size = (nuint)Marshal.SizeOf<T>(); | |
| pointer = (T*)NativeMemory.AlignedAlloc(size * (nuint)length, size); | |
| Length = length; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerspriority: lowLow priorityLow prioritytechnical debtIt affects the difficulties of future developmentIt affects the difficulties of future development