EMILUA(3em)
π NAME π
hey bestie, welcome to EMILUA(3em) from the Emilua reference crew β this page is all about Emilua, the Lua execution engine. π«Ά
β¨ SYNOPSIS β¨
local stream = require "stream"
stream.read_all(io_object, buffer: byte_span) -> integer
π¦ DESCRIPTION π¦
okay so stream.read_all reads data until the buffer you gave it is full, and it blocks the current fiber until the whole thing completes or errs. no cap, it just sits there and handles it. π
It returns the buffer's size (number of bytes read). that's the integer in the synopsis, bestie. π
As https://www.boost.org/doc/libs/1_77_0/doc/html/boost_asio/reference/async_read/overload1.html in Boost.Asio:
This operation is implemented in terms of zero or more calls to the streamβsasync_read_somefunction, and is known as a composed operation. The program must ensure that the stream performs no other read operations (such asasync_read, the streamβsasync_read_somefunction, or any other composed operations that perform reads) until this operation completes.
mwah π thatβs the whole vibe. This page is from Emilua 0.12.1-nixpkgs1, dated 1980-01-01 β catch you in the next fiber, bestie! π
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms