Module rscache::codec [−][src]
Expand description
(De)compression and enciphering/deciphering.
use rscache::codec::{ self, Compression };
let buffer = cache.read(2, 10)?;
let decompressed_buffer = codec::decode(&buffer)?;
let compressed_buffer = codec::encode(Compression::Bzip2, &decompressed_buffer, None)?;Structs
Decodes a cache buffer with some additional data.
Enums
Supported compression types for RuneScape.
Functions
Decodes the buffer.
Decodes the buffer with the given XTEA keys.
Encodes a buffer, with the selected Compression format. version is an optional argument
that encodes the version of this buffer into it, if no version should be encoded
pass None.
Encodes the buffer with the given XTEA keys.