|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The buffer. Read it through the functions; the fields are open only so the caller can place it. More...
#include <text_buf.h>
Data Fields | |
| uint8_t * | mem |
| size_t | cap |
| uint32_t * | ends |
| size_t | ends_cap |
| size_t | n_ends |
| size_t | gap_at |
| size_t | gap_len |
| size_t | len |
| size_t | limit |
| size_t | cursor |
| size_t | kinds [TEXT_EOL_KINDS] |
| text_eol_t | eol |
| uint32_t | revision |
| bool | bom |
| bool | dirty |
The buffer. Read it through the functions; the fields are open only so the caller can place it.
| bool text_buf_t::bom |
the file starts with a BOM
| size_t text_buf_t::cap |
their count
| size_t text_buf_t::cursor |
the cursor, a text offset at a unit's start
| bool text_buf_t::dirty |
edited since the load or text_buf_saved()
| uint32_t* text_buf_t::ends |
per line end, the start of the line after it, with its kind in the top 2 bits
| size_t text_buf_t::ends_cap |
index entries, at most TEXT_BUF_ENDS_MAX
| text_eol_t text_buf_t::eol |
the file's kind of line end
| size_t text_buf_t::gap_at |
text bytes before the gap
| size_t text_buf_t::gap_len |
bytes of the gap
| size_t text_buf_t::kinds[TEXT_EOL_KINDS] |
line ends of each kind
| size_t text_buf_t::len |
text bytes, the BOM not counted
| size_t text_buf_t::limit |
text bytes at most
| uint8_t* text_buf_t::mem |
the caller's bytes
| size_t text_buf_t::n_ends |
line ends in the text
| uint32_t text_buf_t::revision |
moves on with every edit and load