docs: render references from source metadata

This commit is contained in:
Zef Hemel
2026-07-16 12:07:56 +02:00
parent 75ca3b9c39
commit 8e004812bc
29 changed files with 109 additions and 2633 deletions
+2 -12
View File
@@ -4,16 +4,6 @@ references:
- client/space_lua/stdlib/encoding.ts
---
The `encoding` API implements a few useful functions to handle various types of encoding.
The `encoding` namespace converts between strings, byte buffers, Base64, and UTF-8.
### encoding.base64Encode(data)
Encodes data (either a string or byte buffer) as a base64 encoded string.
### encoding.base64Decode(s)
Decodes a base64 encoded string into a byte buffer.
### encoding.utf8Encode(s)
Encodes a (UTF-8) string into a byte buffer.
### encoding.utf8Decode(data)
Decodes a byte buffer into a (UTF-8) string.
${spacelua.renderApiDocumentation("encoding")}