Module rs_buffer_io

Module rs_buffer_io 

Source
Expand description

Buffer-based I/O handlers for parsing SAS files from in-memory byte slices.

Provides ReadStatBufferCtx and a set of extern "C" callback functions that implement the ReadStat I/O interface over a &[u8] buffer instead of a file. This enables parsing .sas7bdat data without filesystem access β€” useful for WASM targets, cloud storage, HTTP uploads, and testing.

StructsΒ§

ReadStatBufferCtx
In-memory buffer context for ReadStat I/O callbacks.

FunctionsΒ§

buffer_close πŸ”’ ⚠
No-op close handler β€” nothing to close for an in-memory buffer.
buffer_open πŸ”’ ⚠
No-op open handler β€” the buffer is already β€œopen”.
buffer_read πŸ”’ ⚠
Read handler that copies bytes from the buffer into the caller’s buffer.
buffer_seek πŸ”’ ⚠
Seek handler that repositions the read cursor within the buffer.
buffer_update πŸ”’ ⚠
Update/progress handler for buffer I/O.