Difference between revisions of "CompressedDataFormat"

(Created page)
 
m (move parent from love.math to love.data)
 
(3 intermediate revisions by one other user not shown)
Line 3: Line 3:
  
 
== Constants ==
 
== Constants ==
;lz4: The LZ4 compression format. Compresses and decompresses very quickly, but the compression ratio is not the best. When compression level 9 is specified, LZ4-HC is used. Some benchmarks are available [https://github.com/Cyan4973/lz4#user-content-benchmarks here].
+
;lz4: The LZ4 compression format. Compresses and decompresses very quickly, but the compression ratio is not the best. LZ4-HC is used when compression level 9 is specified. Some benchmarks are available [https://github.com/Cyan4973/lz4#user-content-benchmarks here].
 
;zlib: The zlib format is DEFLATE-compressed data with a small bit of header data. Compresses relatively slowly and decompresses moderately quickly, and has a decent compression ratio.
 
;zlib: The zlib format is DEFLATE-compressed data with a small bit of header data. Compresses relatively slowly and decompresses moderately quickly, and has a decent compression ratio.
 
;gzip: The gzip format is DEFLATE-compressed data with a slightly larger header than zlib. Since it uses DEFLATE it has the same compression characteristics as the zlib format.
 
;gzip: The gzip format is DEFLATE-compressed data with a slightly larger header than zlib. Since it uses DEFLATE it has the same compression characteristics as the zlib format.
  
 +
{{New feature|11.0|
 +
;deflate: Raw DEFLATE-compressed data (no header).
 +
}}
 
== See Also ==
 
== See Also ==
* [[love.math.compress]]
+
* [[parent::love.data]]
 +
* [[love.data.compress]]
 +
* [[love.math.compress]] (deprecated since 11.0)
 
* [[parent::CompressedData]]
 
* [[parent::CompressedData]]
 
* [[CompressedData:getFormat]]
 
* [[CompressedData:getFormat]]

Latest revision as of 15:05, 30 July 2020

Available since LÖVE 0.10.0
This enum is not supported in earlier versions.

Compressed data formats.

Constants

lz4
The LZ4 compression format. Compresses and decompresses very quickly, but the compression ratio is not the best. LZ4-HC is used when compression level 9 is specified. Some benchmarks are available here.
zlib
The zlib format is DEFLATE-compressed data with a small bit of header data. Compresses relatively slowly and decompresses moderately quickly, and has a decent compression ratio.
gzip
The gzip format is DEFLATE-compressed data with a slightly larger header than zlib. Since it uses DEFLATE it has the same compression characteristics as the zlib format.


Available since LÖVE 11.0
deflate
Raw DEFLATE-compressed data (no header).

See Also

Other Languages