summaryrefslogtreecommitdiff
path: root/test/test_cbuf.c
AgeCommit message (Collapse)Author
2018-08-25cbuf: make empty reads succeedRichard Braun
Getting an error when reading 0 bytes is surprising compared to common read interfaces.
2018-01-04Move sources to new src/ directoryRichard Braun
2018-01-04error: remove and use errno.h directlyRichard Braun
2018-01-04Make the copyright notice fit on 80 columnsRichard Braun
2017-10-07Change the license to MITRichard Braun
Not a real change, it's just that MIT license seems to be the most popular permissive license.
2017-07-25error: fix namespaceRichard Braun
2017-07-24cbuf: update interfaceRichard Braun
Rename cbuf_push and cbuf_pop to cbuf_pushb and cbuf_pop respectively, and add the new cbuf_push and cbuf_pop functions, that provide the same services as the old functions, on buffers rather than single bytes.
2017-06-17cbuf: implement buffered reads and writesRichard Braun
This change brings an interface for fast buffered accesses to the content of a circular buffer, and also an interface to write into a circular buffer at custom locations, in exchange for a small interface break of cbuf_read.