Skip to main content

mtree_buffer_to_string

Function mtree_buffer_to_string 

Source
pub fn mtree_buffer_to_string(buffer: Vec<u8>) -> Result<String, Error>
Expand description

Creates a String from a byte vector which may be gzip compressed.

If buffer contains gzip compressed data, it decompressed before converting it into a String.

ยงErrors

Returns an error if

  • buffer contains invalid gzip compressed data
  • or buffer can not be converted to String.