diff options
Diffstat (limited to 'src/common/Buffer.cpp')
-rw-r--r-- | src/common/Buffer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/Buffer.cpp b/src/common/Buffer.cpp index 49a0f8ae..af0871ca 100644 --- a/src/common/Buffer.cpp +++ b/src/common/Buffer.cpp @@ -12,6 +12,11 @@ void CheckSize(Index size) { } } // namespace +Buffer::Buffer() { + ptr_ = nullptr; + size_ = used_begin_ = used_end_ = 0; +} + Buffer::Buffer(Index size) { CheckSize(size); if (size == 0) { |