From 72a6f80ce51ac10eefcfad052d7c945434c5716a Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Fri, 3 Jul 2015 17:42:50 +0200 Subject: [PATCH] bytes_ostream: Introduce write_place_holder() for arbitrary size --- bytes_ostream.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bytes_ostream.hh b/bytes_ostream.hh index 8c55c7d8fe..74f84dbe84 100644 --- a/bytes_ostream.hh +++ b/bytes_ostream.hh @@ -130,6 +130,10 @@ public: return place_holder{alloc(sizeof(T))}; } + value_type* write_place_holder(size_type size) { + return alloc(size); + } + // Writes given sequence of bytes inline void write(bytes_view v) { if (v.empty()) {