Editor/Embedded/ZstdSharp/Unsafe/ZSTD_customMem.cs

A C# struct that holds pointers for custom memory management when interfacing with Zstd compression. It stores references for allocation, deallocation, and an opaque handle used by the compression library.

#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
namespace HumanoidRetargeter.EditorTools.Embedded.ZstdSharp.Unsafe;

    public unsafe struct ZSTD_customMem
    {
        public void* customAlloc;
        public void* customFree;
        public void* opaque;
        public ZSTD_customMem(void* customAlloc, void* customFree, void* opaque)
        {
            this.customAlloc = customAlloc;
            this.customFree = customFree;
            this.opaque = opaque;
        }
    }