diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-07-27 23:01:29 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-07-28 00:34:22 +0200 |
commit | 2b42c5fcfd2148b1fdc2e3dd562c591ce289a7fc (patch) | |
tree | d78f40a6a9c4b7d922d6d7861e5cdc4eac6ea30e /c++ | |
parent | df31866b5a1661ce15401afacf2ee58ae9f5d5d4 (diff) |
c++,codec-json: Added passing of ring_buffer
Diffstat (limited to 'c++')
-rw-r--r-- | c++/codec-json/json.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c++/codec-json/json.h b/c++/codec-json/json.h index 1fe6bb5..56cadc0 100644 --- a/c++/codec-json/json.h +++ b/c++/codec-json/json.h @@ -20,6 +20,10 @@ public: data(std::size_t ring_size_):buffer_{ring_size_}{} + data(ring_buffer buff_): + buffer_{std::move(buff_)} + {} + data(const std::string_view& view__): buffer_{view__.size()} { |