aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.h
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02[WIP] Tighten up reader node managementDavid Robillard1-20/+23
[WIP] Broken on 32-bit This makes the reader stack manipulations stricter, to make the code more regular and avoid redundant work and bad cache activity. Now, functions that push node headers and their bodies are responsible for (more or less) immediately pushing any trailing null bytes required for termination and alignment. This makes the writes to the node in the stack more local, ensures nodes are terminated as early as possible (to reduce the risk of using non-terminated strings), and avoids the need to calculate aligned stack allocations.
2023-12-02Factor out serd_byte_source_skip_bom()David Robillard1-0/+3
2023-12-02Use ZixAllocator directlyDavid Robillard1-3/+3
2023-12-02Add support for custom allocatorsDavid Robillard1-2/+4
This makes it explicit in the API where memory is allocated, and allows the user to provide a custom allocator to avoid the use of the default system allocator for whatever reason.
2023-12-02Simplify input stream APIDavid Robillard1-39/+22
2023-12-02Use Zix attributes directlyDavid Robillard1-2/+2
2023-12-02Simplify ByteSource implementationDavid Robillard1-19/+5
2023-12-02Add SerdCaretDavid Robillard1-12/+13
2023-12-02Simplify reader interfaceDavid Robillard1-4/+4
2023-12-02Bring read/write interface closer to the C standardDavid Robillard1-2/+2
2023-12-02Make nodes opaqueDavid Robillard1-1/+1
2023-12-02Use more human-readable status codesDavid Robillard1-1/+1
2023-12-02Split up public API headerDavid Robillard1-1/+3
2023-12-02Use char* for strings in public APIDavid Robillard1-5/+5
The constant casting just makes user code a mess, for no benefit.
2023-04-05Use distinct include guards for internal headersDavid Robillard1-4/+4
2022-08-31Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2021-01-09Add missing pure attributesDavid Robillard1-1/+1
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-53/+55
2020-08-14Clean up and separate internal headersDavid Robillard1-0/+118