LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright (C) 2026 Sylvain Labopin
3 */
4
15#ifndef LEXLEO_STREAM_H
16#define LEXLEO_STREAM_H
17
19
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
51size_t stream_read(stream_t *s, void *buf, size_t n, stream_status_t *st);
52
78size_t stream_write(stream_t *s, const void *buf, size_t n, stream_status_t *st);
79
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif // LEXLEO_STREAM_H
stream_status_t stream_flush(stream_t *s)
Flush a stream.
Definition stream.c:62
size_t stream_write(stream_t *s, const void *buf, size_t n, stream_status_t *st)
Write bytes to a stream.
Definition stream.c:38
size_t stream_read(stream_t *s, void *buf, size_t n, stream_status_t *st)
Read bytes from a stream.
Definition stream.c:19
Borrower-visible public types for the stream port.
stream_status_t
Public status codes used by the stream port.
Private handle structure for a stream_t.