22 #ifndef LIBCWD_BUF2STR_H 23 #define LIBCWD_BUF2STR_H 25 #ifndef LIBCWD_CHAR2STR_H 69 buf2str(
char const* buf,
size_t size) : M_buf(buf), M_size(size) { }
80 size_t size = __buf2str.M_size;
81 for (
char const* p1 = __buf2str.M_buf; size > 0; --size, p1++)
89 #endif // LIBCWD_BUF2STR_H buf2str(char const *buf, size_t size)
Construct buf2str object with attributes buf and size.
Definition: buf2str.h:69
Print a (char) buffer with a given size to a debug ostream, escaping non-printable characters...
Definition: buf2str.h:62
Definition of utility class char2str.
namespace for libcwd.
Definition: debug.cc:87
friend std::ostream & operator<<(std::ostream &os, buf2str const &__buf2str)
Write the contents of the buffer represented by __buf2str to the ostream os, escaping non-printable c...
Definition: buf2str.h:78
Print a char to a debug ostream, escaping non-printable characters as needed.
Definition: char2str.h:53