Signed-off-by: John Spray <john.spray@inktank.com>
* to get the next header if header was unavailable, or enough to get the whole
* next entry if the header was available but the body wasn't).
*/
-bool JournalStream::readable(bufferlist &read_buf, uint64_t *need)
+bool JournalStream::readable(bufferlist &read_buf, uint64_t *need) const
{
assert(need != NULL);
void set_format(stream_format_t format_) {format = format_;}
- bool readable(bufferlist &bl, uint64_t *need);
+ bool readable(bufferlist &bl, uint64_t *need) const;
size_t read(bufferlist &from, bufferlist *to, uint64_t *start_ptr);
size_t write(bufferlist &entry, bufferlist *to, uint64_t const &start_ptr);