[−][src]Function explode::explode
pub fn explode(data: &[u8]) -> Result<Vec<u8>>
Decompress a block of data
in memory.
let bytes = vec![0x00, 0x04, 0x82, 0x24, 0x25, 0x8f, 0x80, 0x7f]; let result = explode::explode(&bytes)?; assert_eq!(result, "AIAIAIAIAIAIA".as_bytes());
This function will internally decompress the given memory in
blocks of 4096 bytes. If you wish to use a different block size,
see explode_with_buffer
.