using System; using System.Buffers; /*https://github.com/sidristij/memory-pools*/ namespace MemoryPools.Memory { public class MemoryOwner : IMemoryOwner { public static MemoryOwner Empty = new MemoryOwner(Memory.Empty); protected MemoryOwner(Memory memory) { Memory = memory; } public void Dispose() { Memory = Memory.Empty; } public Memory Memory { get; set; } } }