Skip to main content

decode_str

Function decode_str 

Source
pub fn decode_str(data: &[u8]) -> Result<&str, DriverError>
Expand description

Decode a UTF-8 string from binary format (variable length).

Returns the string slice directly — zero-copy when data lives in the arena. Uses SIMD-accelerated validation (SSE4.2/AVX2 on x86_64, NEON on aarch64) via simdutf8, falling back to scalar on unsupported targets.