const void * bj_stream_peek(struct bj_stream *stream, size_t offset, size_t length)
Points at bytes of the stream without moving the cursor.
struct bj_stream * bj_create_stream_span(struct bj_stream *parent, size_t offset, size_t length)
Create a span over the range [offset, offset + length) of another stream.
size_t bj_read_stream(struct bj_stream *stream, void *dest, size_t count)
Reads data from the stream into a destination buffer.
Portable main() replacement with platform-aware entry shim.