public Result Initialize(long size, MemoryResource memoryResource) { MemoryResource.Buffer buffer = memoryResource.Allocate(size, Alignment); if (!buffer.IsValid) { return(ResultKvdb.AllocationFailed.Log()); } _memoryResource = memoryResource; _buffer = buffer; return(Result.Success); }