LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
dynamic_buffer_stream_state.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
16#ifndef LEXLEO_DYNAMIC_BUFFER_STREAM_STATE_H
17#define LEXLEO_DYNAMIC_BUFFER_STREAM_STATE_H
18
20
21#define DYNAMIC_BUFFER_STREAM_DEFAULT_CAPACITY 256
22
31typedef struct dynamic_buffer_t {
33 char *buf;
34
36 size_t cap;
37
39 size_t len;
40
42 size_t read_pos;
43
47
59
60#endif // LEXLEO_DYNAMIC_BUFFER_STREAM_STATE_H
Private runtime state for the dynamic_buffer_stream backend.
Private dynamic buffer state used by the dynamic_buffer_stream backend.