88 Commits (f8f40a544a3176ff85db2143b1dfe939c49e75b0)

Author SHA1 Message Date
Felix von Leitner 93111d2dc7 add buffer_init_allocbuf, buffer_init_read, buffer_init_write, buffer_init_read_allocbuf, buffer_init_write_allocbuf 11 months ago
Felix von Leitner fe000e3df8 buffer_seek did not work at all m( 1 year ago
Felix von Leitner 1948ac17a4 undo fatfinger 1 year ago
Felix von Leitner 81def53a7d also advance cur if upstream is a bytestream or an iobuf 1 year ago
Felix von Leitner 96ea061228 also increment cur in bs_skip if upstream is not a memory buffer 1 year ago
Felix von Leitner c3366f8bbb only use writev for larger chunks in buffer_putflush 1 year ago
Felix von Leitner 726614af36 abort loop if EOF 1 year ago
Felix von Leitner a10f89d5f3 add compiler.h to abstract gcc attributes 1 year ago
Felix von Leitner 78084c5bd5 also set upstream to error state 1 year ago
Felix von Leitner addd1d3e88 add bs_seterrorstate 1 year ago
Felix von Leitner 26a48663ab add functions for capacity checking and to skip bytes 1 year ago
Felix von Leitner 36e3301ed9 make check can now run in parallel 1 year ago
Felix von Leitner 36059b066a move bs_err into own C file 1 year ago
Felix von Leitner da6046bc71 add unit tests for bs_capacitycheck (same as for bs_capacityassert 1 year ago
Felix von Leitner 626a424607 remove some warnings in unit tests 1 year ago
Felix von Leitner 5ce2f8743c make unit tests self contained 1 year ago
Felix von Leitner 671b6ed25e add prs_readblob (no unit tests yet) 1 year ago
Felix von Leitner c8b8fbe93b add and use bs_capacityassert 1 year ago
Felix von Leitner 04f6a50952 add asciiz parsing 1 year ago
Felix von Leitner 6c1276294d add buffer_peekc 1 year ago
Felix von Leitner e1484560e8 add a few helpers for parsing binary data 1 year ago
Felix von Leitner 519c59690d add errmsg documentation 1 year ago
Felix von Leitner 49dea92f85 use write in buffer_put for a slight perf improvement 4 years ago
Felix von Leitner d6674f6d8e #include <foo.h> -> #include <libowfat/foo.h> 5 years ago
Felix von Leitner c97e2f096e remove unnecessary x86intrin.h include 5 years ago
Felix von Leitner 81c4d3787d include <foo> -> include "foo" 6 years ago
Felix von Leitner 25ceda0778 special case buffer_get_token with token length 1 through memccpy 6 years ago
Felix von Leitner a7929899ea add unistd.h 6 years ago
Felix von Leitner c21bdfb2dd oops, did not actually flush the buffer 6 years ago
Felix von Leitner 7e89f0fecb slight optimization for buffer_flush 6 years ago
Felix von Leitner a9c1f9699e small buffer optimization 7 years ago
Felix von Leitner f2b0c2fb95 use gcc magic and a #define to convert buffer_puts to buffer_put if the 7 years ago
Felix von Leitner 083dc555f3 more constness for stralloc and buffer 7 years ago
Felix von Leitner fa5ffbb19b fix buffer_get 7 years ago
Felix von Leitner d86346ba72 documented wrong return type 7 years ago
Felix von Leitner 68f5b64189 switch io_fds from array to newly implemented (hopefully thread-safe) iarray 8 years ago
Felix von Leitner 21843fedd0 actually increase stralloc.len 8 years ago
Felix von Leitner e058337c40 never close fd 0, 1 or 2 in buffer_close 8 years ago
Felix von Leitner d74fc233fc get rid of more -Wconversion warnings 8 years ago
Felix von Leitner a5dc55208a add man pages for buffer_from* 8 years ago
Felix von Leitner ba62b9d96f add buffer_fromarray, buffer_frombuf 8 years ago
Felix von Leitner 1114f8eb8e stralloc* not const char* 13 years ago
Felix von Leitner d94fec77d0 add man page 13 years ago
Felix von Leitner 97161ed0df add buffer_tosa (buffer writing to auto-growing stralloc) 13 years ago
Felix von Leitner 0698149baf switch to size_t and ssize_t 15 years ago
Felix von Leitner 78baa766f8 add RETURN VALUE section 16 years ago
Felix von Leitner c89e6b4fcc implement Nikola's idea to remove limit number of strings in errmsg 16 years ago
Felix von Leitner e407310547 make sure buffer_get tries to get all the bytes it was asked for 17 years ago
Felix von Leitner e5c56dc6b0 remove even more warnings 17 years ago
Felix von Leitner 4f5117a604 remove a few gcc 4 warnings 17 years ago