public OperationStatus Encode( ReadOnlySpan <byte> inUtf8, Span <byte> outUtf8, out int bytesConsumed, out int bytesWritten, InvalidSequenceBehavior invalidSequenceBehavior = InvalidSequenceBehavior.Fail, bool isFinalChunk = true) => throw null;
// A non-throwing form of ConvertToUtf16. // Follows normal OperationStatus-style conventions. public static OperationStatus ConvertFromUtf16( ReadOnlySpan <char> inUtf16, Span <byte> outUtf8, out int charsConsumed, out int bytesWritten, InvalidSequenceBehavior invalidSequenceBehavior = InvalidSequenceBehavior.Fail, bool isFinalChunk = true) => throw null;
// A non-throwing form of ToLower. // Follows normal OperationStatus-style conventions. public static OperationStatus ToLower( ReadOnlySpan <byte> inUtf8, Span <byte> outfUtf8, out int bytesConsumed, out int bytesWritten, CultureInfo culture, InvalidSequenceBehavior invalidSequenceBehavior = InvalidSequenceBehavior.Fail, bool isFinalChunk = true) => throw null;
// Converts UTF-16 -> UTF-8. // Assumes the input is a standalone UTF-16 string. // Returns the slice of the destination buffer which was populated with data. // Throws on failure (malformed input, destination too small). public static Span <byte> ConvertFromUtf16( ReadOnlySpan <char> inUtf16, Span <byte> outUtf8, InvalidSequenceBehavior invalidSequenceBehavior = InvalidSequenceBehavior.Fail) => throw null;
// Converts to UTF-16 and returns a new System.String instance // rather than writing to a span-based output buffer. public static string ConvertToString( ReadOnlySpan <byte> inUtf8, InvalidSequenceBehavior invalidSequenceBehavior = InvalidSequenceBehavior.Fail) => throw null;
public static RentedArray <byte> ConvertFromUtf16( ReadOnlySpan <char> inUtf16, InvalidSequenceBehavior invalidSequenceBehavior = InvalidSequenceBehavior.Fail, ArrayPool <byte> arrayPool = default) => throw null;
public RentedArray <byte> Encode( ReadOnlySpan <byte> inUtf8, InvalidSequenceBehavior invalidSequenceBehavior = InvalidSequenceBehavior.Fail, ArrayPool <byte> arrayPool = default) => throw null;