bytes_ostream: Introduce write_place_holder() for arbitrary size

This commit is contained in:
Tomasz Grabiec
2015-07-03 17:42:50 +02:00
parent 01c698def4
commit 72a6f80ce5

View File

@@ -130,6 +130,10 @@ public:
return place_holder<T>{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()) {