You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/UTF8.cs
+34-24Lines changed: 34 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,40 @@ namespace SimdUnicode
10
10
publicstaticclassUTF8
11
11
{
12
12
13
+
// Returns &inputBuffer[inputLength] if the input buffer is valid.
14
+
/// <summary>
15
+
/// Given an input buffer <paramref name="pInputBuffer"/> of byte length <paramref name="inputLength"/>,
16
+
/// returns a pointer to where the first invalid data appears in <paramref name="pInputBuffer"/>.
17
+
/// The parameter <paramref name="Utf16CodeUnitCountAdjustment"/> is set according to the content of the valid UTF-8 characters encountered, counting -1 for each 2-byte character, -2 for each 3-byte character, and -3 for each 4-byte character.
18
+
/// The parameter <paramref name="ScalarCodeUnitCountAdjustment"/> is set according to the content of the valid UTF-8 characters encountered, counting -1 for each 4-byte character.
19
+
/// </summary>
20
+
/// <remarks>
21
+
/// Returns a pointer to the end of <paramref name="pInputBuffer"/> if the buffer is well-formed.
0 commit comments