mirror of https://github.com/oxen-io/oxen-mq.git
add method to get current buffer from bt list/dict consumer
This commit is contained in:
parent
0ac1d48bc8
commit
f37e619d7b
|
@ -639,6 +639,9 @@ public:
|
|||
bt_list_consumer(const bt_list_consumer&) = default;
|
||||
bt_list_consumer& operator=(const bt_list_consumer&) = default;
|
||||
|
||||
/// Get a copy of the current buffer
|
||||
std::string_view current_buffer() const { return data; }
|
||||
|
||||
/// Returns true if the next value indicates the end of the list
|
||||
bool is_finished() const { return data.front() == 'e'; }
|
||||
/// Returns true if the next element looks like an encoded string
|
||||
|
|
Loading…
Reference in New Issue