Lines Matching refs:Eraser
129 * Eraser clears buffers. Construct it with a buffer or object and the destructor will ensure that
132 class Eraser {
135 template <typename T> explicit Eraser(T* t);
138 explicit Eraser(T& t)
141 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {}
143 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {}
144 ~Eraser() { memset_s(buf_, 0, size_); }
147 Eraser(const Eraser&);
148 void operator=(const Eraser&);