Skip to main content

slice_bytes_safe

Function slice_bytes_safe 

Source
pub fn slice_bytes_safe(
    content: &[u8],
    start_byte: usize,
    end_byte: usize,
) -> Result<&str, SliceError>
Expand description

Slices exact byte content from an in-memory buffer with safe UTF-8 snapping.