libcsdbg  1.28
C++ exception (and generic) stack trace debug library
string & csdbg::string::shred ( u8  ch = 0)

Fill the whole buffer with a constant byte.

[in]chthe constant byte
No matter how the string is shred, it stays valid (cleared)

Definition at line 375 of file string.cpp.

References clear(), m_data, m_size, and csdbg::util::memset().

376 {
377  util::memset(m_data, ch, m_size);
378  return clear();
379 }
static void * memset(void *, u8, u32)
Fill a memory block with a constant byte.
Definition: util.cpp:320
virtual string & clear()
Clear contents.
Definition: string.cpp:387
u32 m_size
Buffer size.
Definition: string.hpp:46
i8 * m_data
String data.
Definition: string.hpp:42

+ Here is the call graph for this function: