diff options
| author | ame <[email protected]> | 2025-06-12 02:10:10 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-06-12 02:10:10 -0500 |
| commit | 8e7257aac8b30aaa57577770fd636e784361e35d (patch) | |
| tree | 71f7cb33f56a455bac2734bd53b483aa8bb7b27b /library/lullaby/common.lua | |
| parent | a2e8051d4cf6e46310e2e8aab83fee991560d8c0 (diff) | |
fix some net code, add streaming to some requests
Diffstat (limited to 'library/lullaby/common.lua')
| -rw-r--r-- | library/lullaby/common.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/library/lullaby/common.lua b/library/lullaby/common.lua new file mode 100644 index 0000000..936feb9 --- /dev/null +++ b/library/lullaby/common.lua @@ -0,0 +1,21 @@ +---@meta + +---@class meta +local meta = {} + +---@class stream +meta.stream = {} + +---sends the rest of a streams contents to a file +---@param T stream +---@param filename string +---@param bytes integer? max amount to read before stopping +function meta.stream.file(T, filename, bytes) end + +---reads bytes from a stream +---@param T stream +---@param bytes integer? max amount to read before stopping +---@return string +function meta.stream.read(T, bytes) end + +return meta |
