EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

🌸 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