Le 02/07/2023 à 14:00, Raphael Taylor-Davies a écrit :

More an observation than an issue, but UTF-8 validation for StringArray can be 
done very efficiently by first verifying the entire buffer, and then verifying 
the offsets correspond to the start of a UTF-8 codepoint.

Caveat: null slots could potentially contain invalid UTF-8 data. Not likely of course, but it should probably not be an error.

That said, yes, it is a smart strategy for the common case!

Regards

Antoine.

Reply via email to