EMILUA(3em)
πΈ NAME πΈ
okay bestie, welcome to EMILUA(3em) β this is Emilua - Lua execution engine π no cap, thatβs the whole name section, and now you know the vibe.
β¨ SYNOPSIS β¨
local stream = require "stream"
stream.write_all(io_object, buffer: byte_span|string) -> integer
π¦ DESCRIPTION π¦
so stream.write_all writes all of the data you give it to the stream, and it blocks the current fiber until the operation completes or errs out ππ
literally all of it, not just some cute little chunk.
It returns the bufferβs size β thatβs the number of bytes written π so yes, you get a number back, bestie.
This is giving the same energy as https://www.boost.org/doc/libs/1_77_0/doc/html/boost_asio/reference/async_write/overload1.html in Boost.Asio, and that source says, quote:
This operation is implemented in terms of zero or more calls to the streamβs async_write_some function, and is known as a composed operation. The program must ensure that the stream performs no other write operations (such as async_write, the streamβs async_write_some function, or any other composed operations that perform writes) until this operation completes.
that part is not optional, bestie β itβs the rules π«Άβ¨
made with π from Emilua 0.12.1-nixpkgs1, dated 1980-01-01 β slay and goodbye from the EMILUA(3em) page π
π
π¦ 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