0
0
mirror of https://github.com/openwrt/luci.git synced 2025-02-06 23:59:53 +00:00
luci/libs/luci-lib-nixio/docsrc/nixio.bin.lua
Balázs Úr 39196b0de9 luci-app-fwknopd: fix typos
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-20 23:12:48 +01:00

34 lines
874 B
Lua

--- Binary operations and conversion.
module "nixio.bin"
--- Return a hexadecimal ASCII represantation of the content of a buffer.
-- @class function
-- @name hexlify
-- @param buffer Buffer
-- @return representation using characters [0-9a-f]
--- Return a binary buffer from a hexadecimal ASCII representation.
-- @class function
-- @name unhexlify
-- @param hexvalue representation using characters [0-9a-f]
-- @return binary data
--- Calculate the CRC32 value of a buffer.
-- @class function
-- @name crc32
-- @param buffer Buffer
-- @param initial Initial CRC32 value (optional)
-- @return crc32 value
--- Base64 encode a given buffer.
-- @class function
-- @name b64encode
-- @param buffer Buffer
-- @return base64 encoded buffer
--- Base64 decode a given buffer.
-- @class function
-- @name b64decode
-- @param buffer Base64 Encoded data
-- @return binary data