azalea_protocol::read

Function compression_decoder

Source
pub fn compression_decoder(
    stream: &mut Cursor<&[u8]>,
    compression_threshold: u32,
) -> Result<Vec<u8>, DecompressionError>
Expand description

Get the decompressed bytes from a packet. It must have been decrypted first.