validate_dcutf

Function validate_dcutf 

Source
pub fn validate_dcutf(bytes: &[u8]) -> Result<(), DcUtfError>
Expand description

Validates that a byte slice contains valid legacy UTF-8e-128 (DcUtf) data.

ยงErrors

Returns DcUtfError specifying the first invalid byte index and maximal-subpart error length.