summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty/library/resty.md5.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-30 15:25:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-30 15:25:56 +0800
commitf0f9a4ea4509dfb764a5dfebd5e86e679c8f4b03 (patch)
tree5e2c7fcd5acb1598d4398f29a6d48c4e4d834be8 /meta/3rd/OpenResty/library/resty.md5.lua
parent789cb1598a53c615164a5df7a1c4056f7d4130eb (diff)
parent820aa1a56a8a4bdd8fc7098b1e7cff5dd190b2eb (diff)
downloadlua-language-server-f0f9a4ea4509dfb764a5dfebd5e86e679c8f4b03.zip
Merge remote-tracking branch 'origin/master' into multi-workspace
Diffstat (limited to 'meta/3rd/OpenResty/library/resty.md5.lua')
-rw-r--r--meta/3rd/OpenResty/library/resty.md5.lua22
1 files changed, 15 insertions, 7 deletions
diff --git a/meta/3rd/OpenResty/library/resty.md5.lua b/meta/3rd/OpenResty/library/resty.md5.lua
index bb8204c1..de82b49e 100644
--- a/meta/3rd/OpenResty/library/resty.md5.lua
+++ b/meta/3rd/OpenResty/library/resty.md5.lua
@@ -1,8 +1,16 @@
---@meta
-resty_md5={}
-function resty_md5.final(self) end
-function resty_md5.new(self) end
-function resty_md5.reset(self) end
-resty_md5._VERSION="0.11"
-function resty_md5.update(self, s) end
-return resty_md5 \ No newline at end of file
+
+---@class resty.md5 : resty.string.checksum
+local md5={}
+
+--- Create a new md5 checksum object.
+---@return resty.md5
+function md5:new() end
+
+--- Add a string to the md5 checksum data
+---@param s string
+---@param len? number Optional length (defaults to the length of `s`)
+---@return boolean ok
+function md5:update(s, len) end
+
+return md5 \ No newline at end of file