diff options
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c index 35067403..773dd99b 100644 --- a/src/reader.c +++ b/src/reader.c @@ -60,6 +60,13 @@ typedef struct { const Node* predicate; } ReadContext; +/** Measured UTF-8 string. */ +typedef struct { + size_t n_bytes; ///< Size in bytes including trailing null byte + size_t n_chars; ///< Length in characters + uint8_t buf[]; ///< Buffer +} SerdString; + static const Node INTERNAL_NODE_NULL = { 0, 0, 0, 0 }; struct SerdReaderImpl { |