fix(writer): reset buffer pointer (#62)
This commit is contained in:
parent
281cbb95f8
commit
b3ac7d2562
@ -29,6 +29,7 @@ writer::~writer()
|
|||||||
auto writer::clear() -> void
|
auto writer::clear() -> void
|
||||||
{
|
{
|
||||||
std::memset(data_, 0, size_);
|
std::memset(data_, 0, size_);
|
||||||
|
pos_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<> auto writer::write(i8 data) -> void
|
template<> auto writer::write(i8 data) -> void
|
||||||
|
Loading…
Reference in New Issue
Block a user