Module read

Source
Expand description

Read packets from a stream.

Enums§

DecompressionError
FrameSplitterError
ReadPacketError

Statics§

MAXIMUM_UNCOMPRESSED_LENGTH

Functions§

compression_decoder
Get the decompressed bytes from a packet. It must have been decrypted first.
deserialize_packet
read_packet
Read a single packet from a stream.
read_raw_packet
read_raw_packet_from_buffer
try_read_packet
Try to read a single packet from a stream. Returns None if we haven’t received a full packet yet.
try_read_raw_packet