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 a05cadf843
commit 18d2b89358

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