fix(writer): reset buffer pointer (#62)

This commit is contained in:
Xenxo Espasandín 2023-02-11 23:52:40 +01:00 committed by GitHub
parent 281cbb95f8
commit b3ac7d2562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ writer::~writer()
auto writer::clear() -> void
{
std::memset(data_, 0, size_);
pos_ = 0;
}
template<> auto writer::write(i8 data) -> void