mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
update doc/*/scripting/builtins/libbase64.md
This commit is contained in:
parent
063cbde569
commit
34a9310e3c
2 changed files with 12 additions and 0 deletions
|
|
@ -8,4 +8,10 @@ base64.encode(bytes: table|ByteArray) -> str
|
||||||
|
|
||||||
-- Decode base64 string to ByteArray or lua table if second argument is set to true
|
-- Decode base64 string to ByteArray or lua table if second argument is set to true
|
||||||
base64.decode(base64string: str, [optional]usetable: bool=false) -> table|ByteArray
|
base64.decode(base64string: str, [optional]usetable: bool=false) -> table|ByteArray
|
||||||
|
|
||||||
|
-- Encode bytes to urlsafe-base64 string ('-', '_' instead of '+', '/')
|
||||||
|
base64.encode_urlsafe(bytes: table|ByteArray) -> str
|
||||||
|
|
||||||
|
-- Decodes urlsafe-base64 string to a ByteArray or a table of numbers if the second argument is set to true
|
||||||
|
base64.decode_urlsafe(base64string: str, [optional]usetable: bool=false) -> table|ByteArray
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,10 @@ base64.encode(bytes: table|ByteArray) -> str
|
||||||
|
|
||||||
-- Декодирует base64 строку в ByteArray или таблицу чисел, если второй аргумент установлен на true
|
-- Декодирует base64 строку в ByteArray или таблицу чисел, если второй аргумент установлен на true
|
||||||
base64.decode(base64string: str, [опционально]usetable: bool=false) -> table|ByteArray
|
base64.decode(base64string: str, [опционально]usetable: bool=false) -> table|ByteArray
|
||||||
|
|
||||||
|
-- Кодирует массив байт в urlsafe-base64 строку ('-', '_' вместо '+', '/')
|
||||||
|
base64.encode_urlsafe(bytes: table|ByteArray) -> str
|
||||||
|
|
||||||
|
-- Декодирует urlsafe-base64 строку в ByteArray или таблицу чисел, если второй аргумент установлен на true
|
||||||
|
base64.decode_urlsafe(base64string: str, [опционально]usetable: bool=false) -> table|ByteArray
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue