Skip to main content

check_utf8_value_start

Function check_utf8_value_start 

Source
pub(crate) fn check_utf8_value_start(value: &[u8]) -> Result<()>
Expand description

Check that value does not start in the middle of a UTF-8 character.

check_valid_utf8 over values stored back to back misses a character split across two of them, so each value’s start must be checked as well.