azalea_protocol::read

Function try_read_raw_packet

Source
pub fn try_read_raw_packet<R>(
    stream: &mut R,
    buffer: &mut BytesMut,
    compression_threshold: Option<u32>,
    cipher: &mut Option<Aes128CfbDec>,
) -> Result<Option<Vec<u8>>, Box<ReadPacketError>>
where R: AsyncRead + Unpin + Send + Sync,