diff options
author | Michael Martin <flrgh@protonmail.com> | 2021-12-21 17:58:03 -0800 |
---|---|---|
committer | Michael Martin <flrgh@protonmail.com> | 2021-12-21 18:02:15 -0800 |
commit | 764074d764d901065e353d68f1c5d0a78ec3a6c6 (patch) | |
tree | 942d4f3fe2075c1705efa9d6a61c6b69b6f42ea9 /meta/3rd/OpenResty/library/resty.md5.lua | |
parent | 19591ff2f4a05fcadb574c0fc588325e217bd3ff (diff) | |
download | lua-language-server-764074d764d901065e353d68f1c5d0a78ec3a6c6.zip |
chore: update/cleanup resty.string annotations
Diffstat (limited to 'meta/3rd/OpenResty/library/resty.md5.lua')
-rw-r--r-- | meta/3rd/OpenResty/library/resty.md5.lua | 22 |
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 |