aboutsummaryrefslogtreecommitdiff
path: root/library/lullaby/common.lua
blob: 936feb999f806f1cbf392ce8677097f6dfe6ec5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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