From 8e7257aac8b30aaa57577770fd636e784361e35d Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 12 Jun 2025 02:10:10 -0500 Subject: fix some net code, add streaming to some requests --- library/lullaby/common.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 library/lullaby/common.lua (limited to 'library/lullaby/common.lua') 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 -- cgit v1.2.3