EncodingScheme.validLength

size_t validLength()(const(ubyte)[] s)

Returns the length of the longest possible substring, starting from the first element, which is validly encoded.

Parameters

sthe array to be tested