Module assembly_pack::sd0

source ·
Available on crate feature sd0 only.
Expand description

§The segmented (*.sd0) compression format

This format is used to deflate (zlib) the data served from the server to the client, and to use less space in the pack archives.

§Serialization

[L:5] 's' 'd' '0' 0x01 0xff
repeated:
    [u32] length V (of the following chunk)
    [L:V] zlib stream (deflate with zlib header)

Modules§

Structs§

  • When compressing data, the compression level can be specified by a value in this struct.

Constants§

  • The magic bytes for the sd0 format

Functions§

  • Decode a byte slice into a vector
  • Encode a byte slice into a vector