Module veloren_common_net::msg::compression

source ·

Structs§

  • Wrapper for compressed, serialized data (for stuff that doesn’t use the default lz4 compression)
  • A grid of the z levels, left to right, top to bottom, like English prose. Convenient for visualizing terrain for debugging or for user-inspectable file formats, but wastes space if the number of z levels isn’t a perfect square.
  • A wide, short image. Shares the advantage of not wasting space with TallPacking (which is strictly worse, and was moved to benchmark code in world), but faster to compress and smaller since PNG compresses each row independently, so a wide image has fewer calls to the compressor. FLIP_X has the same spatial locality preserving behavior as with TallPacking.

Traits§

Functions§