We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1faa785 commit a8a4307Copy full SHA for a8a4307
FFXIVClientStructs/FFXIV/Client/System/Memory/IMemorySpace.cs
@@ -9,8 +9,9 @@ public interface ICreatable {
9
[StructLayout(LayoutKind.Explicit, Size = 8)]
10
public unsafe partial struct IMemorySpace {
11
public T* Create<T>() where T : unmanaged, ICreatable {
12
- var memory = Calloc<T>(1);
+ var memory = (T*)Malloc<T>();
13
if (memory is null) return null;
14
+ Memset(memory, 0, (ulong)sizeof(T));
15
memory->Ctor();
16
return memory;
17
}
0 commit comments