|
c0
C0DATA — structured data using ASCII C0 control codes (C)
|
A scan of an append-only log. More...
#include <c0.h>
Data Fields | |
| const uint8_t * | buf |
| size_t | len |
| size_t | committed_end |
| just past the last ETB and its payload | |
| int | torn |
| size_t | block_count |
| size_t | damaged_count |
| int | has_damaged |
| whether any block is damaged | |
| size_t | first_damaged |
| index of the first damaged block | |
| size_t | resume_offset |
| the offset after that block's ETB and payload, where reading can go on | |
A scan of an append-only log.
An unescaped ETB is always a commit, inside text or a level too. A committed block that is not well-formed, cut by its ETB or holding any other error, is damaged: it delivers nothing and adds nothing to the parse state. The tail after the last commit is torn unless it holds only layout, notes, EOT or EM.
| size_t c0_stream::block_count |
| const uint8_t* c0_stream::buf |
| size_t c0_stream::committed_end |
just past the last ETB and its payload
| size_t c0_stream::damaged_count |
| size_t c0_stream::first_damaged |
index of the first damaged block
| int c0_stream::has_damaged |
whether any block is damaged
| size_t c0_stream::len |
| size_t c0_stream::resume_offset |
the offset after that block's ETB and payload, where reading can go on
| int c0_stream::torn |