Append raw information about an object to a string.
Synopsis
Declared in <folly/logging/ObjectToString.h>
template<typename Arg>
void
appendRawObjectInfo(
std::string& str,
Arg const* arg);
Description
This is used as a fallback for objects that we do not otherwise know how to print. This emits:
-
The object type name (if RTTI is supported)
-
The object size
-
A hexdump of the object contents.
e.g. [MyStruct of size 4: 37 6f af 2a] [AnotherClass of size 8: f9 48 78 85 56 54 8f 54]
Parameters
Name |
Description |
str |
The string to append the object information to. |
arg |
A pointer to the object to describe. |
Created with MrDocs