Tomasz Grabiec
c971544e83
bytes_ostream: Adapt to Output concept used in serializer.hh
...
Message-Id: <1453888242-2086-1-git-send-email-tgrabiec@scylladb.com >
2016-01-27 12:13:34 +02:00
Tomasz Grabiec
eb1b21eb4b
Introduce hashing helpers
2016-01-08 21:10:25 +01:00
Avi Kivity
098136f4ab
Merge "Convert serialization of query::result to use db::serializer<>" from Tomasz
...
Reviewed-by: Nadav Har'El <nyh@scylladb.com >
2015-12-07 16:53:34 +02:00
Tomasz Grabiec
657841922a
Mark move constructors noexcept when possible
2015-12-07 09:50:27 +01:00
Tomasz Grabiec
d4d3a5b620
bytes_ostream: Make size_type and value_type public
2015-12-03 09:19:11 +01:00
Avi Kivity
d5cf0fb2b1
Add license notices
2015-09-20 10:43:39 +03:00
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