Expand description
Buffered streams — Rust port of lzio.c + lzio.h.
Provides two public types:
ZIO: a read cursor wrapping an external chunk-supplier callback.LexBuffer: a growableVec<u8>byte buffer with the named interface that C code accessed through theluaZ_*buffer*macro family.
The lzio header is merged here per PORTING.md §1 (“Headers merge into the
consuming .rs”). All macros defined in lzio.h are translated at their
call sites and collected as methods or constants in this module.
§C source files
reference/lua-5.4.7/src/lzio.c(68 lines, 3 functions)reference/lua-5.4.7/src/lzio.h(66 lines, struct + macros; merged)
Structs§
- LexBuffer
- Growable byte buffer used by the lexer for token text accumulation.
- ZIO
- Buffered input stream wrapping an external chunk-reader callback.
Type Aliases§
- Chunk
Reader - Reentrant chunk supplier for a
ZIO.