Commit graph

8 commits

Author SHA1 Message Date
Matthew Wild
558a365575 util.ringbuffer: Fix accidentally committed test change (thanks buildbot) 2020-06-25 15:45:13 +01:00
Matthew Wild
f3add85e3c util.ringbuffer: Add some additional asserts to tests 2020-06-24 13:00:11 +01:00
Matthew Wild
b9a670dace util.ringbuffer: Ensure unsigned chars are always returned from :byte() 2020-06-24 12:34:20 +01:00
Matthew Wild
dd0274b8c7 util.ringbuffer: Add test for :discard() 2020-06-23 16:50:26 +01:00
Matthew Wild
14a436817d util.ringbuffer: Add :sub() and :byte() methods equivalent to the string methods 2020-06-04 15:19:20 +01:00
Kim Alvefur
4bab7af07d util.ringbuffer: Prevent creation of buffer with negative size
Previously this would have been (unsigned)-1 which is a large positive
integer.
2020-06-04 16:11:08 +02:00
Kim Alvefur
0bb1474ce6 util.ringbuffer: Prevent creation of zero-size buffer 2020-05-29 18:11:42 +02:00
Kim Alvefur
838f8ebd5b util.ringbuffer: Add some initial tests 2020-05-29 17:53:00 +02:00