Pekka Enberg
5164932f1e
bytes_ostream: Fix current_space_left()
...
We also allocate chunks larger than "usable_chunk_size" in alloc(). Fix
up the calculation in current_space_left().
Spotted by ASan.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-08-07 13:00:31 +03:00
Tomasz Grabiec
c742529e52
bytes_ostream: Introduce retract()
...
Useful for optimistic writers, where it's easier/cheaper to retract
later than to calculate the decision up front.
2015-07-09 19:55:00 +02:00
Tomasz Grabiec
c3f7856853
bytes_ostream: Introduce fragment iterator
2015-07-09 18:53:03 +02:00
Tomasz Grabiec
72a6f80ce5
bytes_ostream: Introduce write_place_holder() for arbitrary size
2015-07-04 13:46:31 +02:00
Pekka Enberg
3afceeea09
bytes_ostream.hh: bytes_ostream::empty()
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-04-28 15:49:34 +03:00
Tomasz Grabiec
c88e17c9e1
bytes_ostream: fix alloc-dealloc mismatch
...
Caught by ASAN, reported by Pekka.
2015-04-20 20:03:38 +03:00
Tomasz Grabiec
0f99570555
Introduce bytes_ostream
2015-04-15 20:33:49 +02:00