pub fn encode_bytes(bytes: &[u8]) -> Result<Vec<u8>, VpkError>
Compress a &[u8] into a vpk0 Vec<u8>
&[u8]
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.
Read
Encoder
std::io::Cursor