os: add Reporter::clear method

This commit is contained in:
Norman Feske 2015-06-16 12:06:54 +02:00 committed by Christian Helmuth
parent 2d8a4917a5
commit cc74204801
1 changed files with 5 additions and 1 deletions

View File

@ -82,6 +82,11 @@ class Genode::Reporter : Noncopyable
Name name() const { return _name; }
/**
* Clear report buffer
*/
void clear() { memset(_base(), 0, _size()); }
/**
* Report data buffer
*
@ -117,5 +122,4 @@ class Genode::Reporter : Noncopyable
};
};
#endif /* _INCLUDE__OS__REPORTER_H_ */