From bd51baa6d764293a83d4e955b533e55b57e8e147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 20 Jul 2021 17:28:53 +0800 Subject: update --- meta/3rd/love2d/library/love.data.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'meta/3rd/love2d/library/love.data.lua') diff --git a/meta/3rd/love2d/library/love.data.lua b/meta/3rd/love2d/library/love.data.lua index 4cac6c92..91c7fa80 100644 --- a/meta/3rd/love2d/library/love.data.lua +++ b/meta/3rd/love2d/library/love.data.lua @@ -109,3 +109,25 @@ local CompressedData = {} --- ---@return love.CompressedDataFormat format # The format of the CompressedData. function CompressedData:getFormat() end + +---@class love.CompressedDataFormat +---@field lz4 integer # 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. +---@field zlib integer # 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. +---@field gzip integer # 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. +---@field deflate integer # Raw DEFLATE-compressed data (no header). + +---@class love.ContainerType +---@field data integer # Return type is ByteData. +---@field string integer # Return type is string. + +---@class love.EncodeFormat +---@field base64 integer # Encode/decode data as base64 binary-to-text encoding. +---@field hex integer # Encode/decode data as hexadecimal string. + +---@class love.HashFunction +---@field md5 integer # MD5 hash algorithm (16 bytes). +---@field sha1 integer # SHA1 hash algorithm (20 bytes). +---@field sha224 integer # SHA2 hash algorithm with message digest size of 224 bits (28 bytes). +---@field sha256 integer # SHA2 hash algorithm with message digest size of 256 bits (32 bytes). +---@field sha384 integer # SHA2 hash algorithm with message digest size of 384 bits (48 bytes). +---@field sha512 integer # SHA2 hash algorithm with message digest size of 512 bits (64 bytes). -- cgit v1.2.3