Table of Contents

Class UTF8

Namespace
SimdUnicode
Assembly
SimdUnicode.dll
public static class UTF8
Inheritance
UTF8
Inherited Members

Methods

GetPointerToFirstInvalidByte(byte*, int, out int, out int)

Given an input buffer pInputBuffer of byte length inputLength, returns a pointer to where the first invalid data appears in pInputBuffer. The parameter 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 and 4-byte characters. The parameter ScalarCodeUnitCountAdjustment is set according to the content of the valid UTF-8 characters encountered, counting -1 for each 4-byte character.

GetPointerToFirstInvalidByteArm64(byte*, int, out int, out int)
GetPointerToFirstInvalidByteAvx2(byte*, int, out int, out int)
GetPointerToFirstInvalidByteAvx512(byte*, int, out int, out int)
GetPointerToFirstInvalidByteScalar(byte*, int, out int, out int)
GetPointerToFirstInvalidByteSse(byte*, int, out int, out int)