decompress_vba_stream

Function decompress_vba_stream 

Source
pub fn decompress_vba_stream(data: &[u8]) -> Result<Vec<u8>>
Expand description

Decompress a VBA compressed stream per MS-OVBA 2.4.1.

The format is:

  • 1 byte signature (0x01)
  • Sequence of compressed chunks, each starting with a 2-byte header
  • Each chunk contains a mix of literal bytes and copy tokens