static string format_unsigned_integer_pointer(Context &context, void *address) { Type data; if (obtain_pointer_data(context, &data, address, Context::POINTER_VALUES)) return "[" + context.FormatUnsigned(data) + "]"; return context.FormatPointer(address); }
static string format_pointer(Context &context, sockaddr_args *args) { string r; r = "addr = " + format_pointer_value<sockaddr>(context, args->address); r += ", len = " + context.FormatUnsigned(args->address_length); return r; }
string EnumTypeHandler::RenderValue(Context &context, unsigned int value) const { if (context.GetContents(Context::ENUMERATIONS)) { EnumMap::const_iterator i = fMap.find(value); if (i != fMap.end() && i->second != NULL) return i->second; } return context.FormatUnsigned(value); }
string GetReturnValue(Context &context, uint64 value) { return context.FormatUnsigned(value); }
string GetParameterValue(Context &context, Parameter *, const void *address) { return context.FormatUnsigned(get_value<Type>(address)); }