pub fn encode_bytes(bytes: &[u8]) -> Result<Vec<u8>, VpkError>
Expand description

Compress a &[u8] into a vpk0 Vec<u8>

This is a convenience function to encode a Reader without having to import and set up an Encoder and a std::io::Cursor.