|
@@ -50,4 +50,8 @@ void Buffer::swap(Buffer& other) {
|
|
std::swap(length, other.length);
|
|
std::swap(length, other.length);
|
|
std::swap(capacity, other.capacity);
|
|
std::swap(capacity, other.capacity);
|
|
std::swap(buffer, other.buffer);
|
|
std::swap(buffer, other.buffer);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void Buffer::clear() {
|
|
|
|
+ length = 0;
|
|
}
|
|
}
|