Exemplo n.º 1
0
 /// <summary>
 /// Shim function which can call virtual method <see cref="FindFirstCharacterToEncodeUtf8"/> using fast dispatch.
 /// </summary>
 internal static int FindFirstCharacterToEncodeUtf8Shim(TextEncoder encoder, ReadOnlySpan <byte> utf8Text)
 {
     return(encoder.FindFirstCharacterToEncodeUtf8(utf8Text));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Shim function which can call virtual method <see cref="EncodeUtf8"/> using fast dispatch.
 /// </summary>
 internal static OperationStatus EncodeUtf8Shim(TextEncoder encoder, ReadOnlySpan <byte> utf8Source, Span <byte> utf8Destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock)
 {
     return(encoder.EncodeUtf8(utf8Source, utf8Destination, out bytesConsumed, out bytesWritten, isFinalBlock));
 }