Trait avalanche_types::message::Compressor
source · pub trait Compressor: Outbound {
fn compress_with_header(&self) -> Result<Bytes>;
}
Required Methods
sourcefn compress_with_header(&self) -> Result<Bytes>
fn compress_with_header(&self) -> Result<Bytes>
Compresses the message with the header that represents the size of the compressed message. The first 32-bit (4-byte) represents the length of the message. ref. “avalanchego/network/peer.writeMessages”