aboutsummaryrefslogtreecommitdiff
path: root/library/lullaby/common.lua
diff options
context:
space:
mode:
authorame <[email protected]>2025-08-01 14:25:07 -0500
committerame <[email protected]>2025-08-01 14:25:07 -0500
commit19afaa2feedaa6ec1e1774174ce752e7f2583484 (patch)
tree5505bce2cc31f21107c27646c3c23fc1ccf4159e /library/lullaby/common.lua
parent10ddc97d221989e107c5283e3d5df8c48a23dc26 (diff)
change stream modes
Diffstat (limited to 'library/lullaby/common.lua')
-rw-r--r--library/lullaby/common.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/lullaby/common.lua b/library/lullaby/common.lua
index 936feb9..96be2d6 100644
--- a/library/lullaby/common.lua
+++ b/library/lullaby/common.lua
@@ -9,8 +9,9 @@ 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
+---@param bytes integer? max amount to read before stopping, 0 if nil
+---@param mode string? what mode to open the file, w if nil
+function meta.stream.file(T, filename, bytes, mode) end
---reads bytes from a stream
---@param T stream