Skip to content
Permalink
a9e4e11b51
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (14 sloc) 451 Bytes
using System;
using System.Buffers;
namespace Cesil
{
internal sealed class EmptyMemoryOwner : IMemoryOwner<char>
{
internal static readonly EmptyMemoryOwner Singleton = new EmptyMemoryOwner();
public Memory<char> Memory => Memory<char>.Empty;
private EmptyMemoryOwner() { }
public void Dispose() { }
public override string ToString()
=> $"{nameof(EmptyMemoryOwner)} Singleton";
}
}