diff options
author | David Robillard <d@drobilla.net> | 2018-05-13 00:34:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-05-27 21:10:21 +0200 |
commit | 655e6429d10091da033973027b4a1c5393e53a1c (patch) | |
tree | 157fceeef962f20ce87150a4bafb70695a7cab9c /src/byte_source.h | |
parent | b260af75f48f3824d6fbcb634ddc285f2be4665e (diff) | |
download | serd-655e6429d10091da033973027b4a1c5393e53a1c.tar.gz serd-655e6429d10091da033973027b4a1c5393e53a1c.tar.bz2 serd-655e6429d10091da033973027b4a1c5393e53a1c.zip |
Fix UTF-8 round tripping
Diffstat (limited to 'src/byte_source.h')
-rw-r--r-- | src/byte_source.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/byte_source.h b/src/byte_source.h index 028add77..50c4c2c9 100644 --- a/src/byte_source.h +++ b/src/byte_source.h @@ -40,10 +40,10 @@ typedef struct { void* stream; ///< Stream (e.g. FILE) size_t page_size; ///< Number of bytes to read at a time Cursor cur; ///< Cursor for error reporting - char* file_buf; ///< Buffer iff reading pages from a file - const char* read_buf; ///< Pointer to file_buf or read_byte + uint8_t* file_buf; ///< Buffer iff reading pages from a file + const uint8_t* read_buf; ///< Pointer to file_buf or read_byte size_t read_head; ///< Offset into read_buf - char read_byte; ///< 1-byte 'buffer' used when not paging + uint8_t read_byte; ///< 1-byte 'buffer' used when not paging bool from_stream; ///< True iff reading from `stream` bool prepared; ///< True iff prepared for reading bool eof; ///< True iff end of file reached |