diff options
Diffstat (limited to 'cpputil/databuffer.h')
-rw-r--r-- | cpputil/databuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpputil/databuffer.h b/cpputil/databuffer.h index e981a7c22..4bedd075d 100644 --- a/cpputil/databuffer.h +++ b/cpputil/databuffer.h @@ -23,6 +23,7 @@ class DataBuffer { DataBuffer(const DataBuffer& other) : data_(nullptr), len_(0) { Assign(other); } + explicit DataBuffer(size_t l) : data_(nullptr), len_(0) { Allocate(l); } ~DataBuffer() { delete[] data_; } DataBuffer& operator=(const DataBuffer& other) { |