diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 17:28:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 17:28:53 +0800 |
commit | bd51baa6d764293a83d4e955b533e55b57e8e147 (patch) | |
tree | 77192e93b1cc164f4956a17acb042dfa0629a3c5 /meta/3rd/love2d/library/love.data.lua | |
parent | 15e011e334099a9c0c6bc34399fb90769600210f (diff) | |
download | lua-language-server-bd51baa6d764293a83d4e955b533e55b57e8e147.zip |
update
Diffstat (limited to 'meta/3rd/love2d/library/love.data.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.data.lua | 22 |
1 files changed, 22 insertions, 0 deletions
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). |