<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0-preview.7.20364.11" />

EncoderNLS

protected bool m_mustFlush

public Encoding Encoding { get; }

public bool MustFlush { get; }

public void Convert(Char* chars, int charCount, Byte* bytes, int byteCount, bool flush, out int charsUsed, out int bytesUsed, out bool completed)

public int GetByteCount(Char* chars, int count, bool flush)

public int GetBytes(Char* chars, int charCount, Byte* bytes, int byteCount, bool flush)