SpanBasedEncoding abstract class SpanBasedEncoding : Encoding Documentation Code protected SpanBasedEncoding() public int GetByteCount(ReadOnlySpan<char> chars) protected abstract int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) public int GetCharCount(ReadOnlySpan<byte> bytes) protected abstract int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write)