is_binary_content

Function is_binary_content 

Source
pub fn is_binary_content(data: &[u8]) -> bool
Expand description

Check if content is binary by examining up to 8192 bytes. Checks for null byte ratio > 1% and UTF-8 validity.