Commit graph

48 commits

Author SHA1 Message Date
Simon Cruanes
197b4e7f1b prepare for 2.4 2018-11-30 10:40:13 -06:00
Fabian
ff58dc0b5f Fix #235 for CCRingBuffer
* Make dummy available to MakeFromArray

* Overwrite deleted elements with a dummy element to allow them to be GCed

* Test that deleted elements can be GCed
2018-11-30 10:14:09 -06:00
Simon Cruanes
2a9795090b test: improve perf by changing random gens 2018-10-13 18:52:22 -05:00
Simon Cruanes
d4fafab9b7 more tests 2018-02-07 20:38:01 -06:00
Simon Cruanes
bedf9ecc1e prepare for 1.3 2017-07-29 18:08:58 +02:00
Simon Cruanes
aab19f6a50 update headers; reindent 2017-07-04 13:13:24 +02:00
Simon Cruanes
a3ff9db0a1 change CCRingBuffer.peek_{front,back} to return options (closes #127) 2017-06-14 23:58:07 +02:00
Simon Cruanes
be84b76dc0 add CCRingBuffer.is_full 2017-06-14 23:52:05 +02:00
Simon Cruanes
f91af32ee4 bugfix in CCRingBuffer.skip, and corresponding tests 2017-06-14 08:54:46 +02:00
Simon Cruanes
ff77a6a16b cleanup and refactor of CCRingBuffer (see #126). Add strong tests.
- add some qcheck test comparing to reference implem
- use bounded buffers only
- use inefficient methods (for now)
2017-06-13 20:42:27 +02:00
Simon Cruanes
635855b68b CCRingBuffer: add regression test for #126; update headers; style 2017-05-30 15:18:12 +02:00
Simon Cruanes
d659ba677e remove old license header 2017-05-21 15:34:47 +02:00
Simon Cruanes
03fd42e67d reindentation 2017-01-25 00:08:12 +01:00
Fourchaux
44387de784 Correction typos (fichiers src) 2015-11-08 22:27:59 +01:00
Simon Cruanes
9f7be2ddc9 enable -safe-string on the whole project, with some linked refactorings 2015-06-26 14:05:45 +02:00
Simon Cruanes
48aba9e49e fix: use the proper array module in CCRingBuffer 2015-06-23 15:01:04 +02:00
Simon Cruanes
8f33484dff prepare 0.11 2015-05-24 21:40:31 +02:00
Simon Cruanes
61c5e5ec3f RingBuffer.{of_array, to_array} convenience functions 2015-05-04 22:45:36 +02:00
Simon Cruanes
cf6d730998 CCRingBuffer.append (simple implementation) 2015-02-25 23:17:41 +01:00
Simon Cruanes
536f3152af bugfix in CCRingBuffer (syntax?) 2015-02-25 23:17:37 +01:00
Simon Cruanes
050514a326 change a bit the interface of CCRingBuffer, indentation, names 2015-02-25 19:22:09 +01:00
carm
6f788d3a2a ringbuffer doc updates 2015-02-22 21:03:16 -05:00
carm
7c0ed782e4 make some tests more random 2015-02-22 20:29:13 -05:00
carm
67eae77105 final set of qtests for ringbuffer 2015-02-22 20:27:26 -05:00
carm
356f6934dd ringbuffer get front/back qtests 2015-02-22 20:10:16 -05:00
carm
ec92dfaa94 remove debugging, better is_empty test 2015-02-22 20:01:47 -05:00
carm
ed126fa6bb check for non-negative length 2015-02-22 19:58:46 -05:00
carm
d66a5bc86f ringbuffer create qtest 2015-02-22 19:57:17 -05:00
carm
420f7c6bcc fix to blit_from_bounded, several more qtests 2015-02-22 19:52:15 -05:00
carm
b57ca9d06a fix to junk_back, take/junk qtests 2015-02-22 19:18:14 -05:00
carm
9e0908dc2d ringbuffer isempty qtest 2015-02-22 18:55:36 -05:00
carm
d8c2bd9da5 ringbuffer reset qtest 2015-02-22 18:53:16 -05:00
carm
aecbbf0dcd ringbuffer clear qtest 2015-02-22 18:51:06 -05:00
carm
a2a6d28229 blit into qtest 2015-02-22 18:28:45 -05:00
carm
c22a33c405 fix bugs revealed in qtests 2015-02-22 13:03:59 -05:00
cpiccion
777aca435a unit test fixes 2015-02-20 16:20:03 -05:00
carm
a1ca8ff831 formatting 2015-02-19 23:10:19 -05:00
cpiccion
51b2828af3 formatting, qtests 2015-02-19 18:28:20 -05:00
carm
39cac7bc08 converted various functions to _[front|back] style 2015-02-18 00:26:59 -05:00
carm
00bcb47c4f remove Floats/Ints/Bools modules 2015-02-17 19:25:50 -05:00
carm
8ec4ba09ac remove white space 2015-02-17 00:57:08 -05:00
carm
9787e52e36 various ring buf convenience functors
make explicit signature for ring buffer type
2015-02-17 00:47:57 -05:00
carm
847286597b specialized primitive module arrays, functorized version for remainder 2015-02-16 19:48:31 -05:00
carm
c7607f8ce7 functorize ring buffer over ARRAY sig 2015-02-16 00:19:17 -05:00
carm
07f0afcd28 add deque style functions to ring buffer module, bug fixes 2015-02-14 08:31:54 -05:00
carm
a43145b107 bounded/unbounded versions of blit_from 2015-02-13 20:08:13 -05:00
carm
2cf485ebee support for unbounded ring buffer 2015-02-13 19:21:46 -05:00
carm
4a994cff38 rename buffer io to ring buffer 2015-02-13 19:00:04 -05:00
Renamed from src/data/CCBufferIO.ml (Browse further)