Beispiel #1
0
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);
}
Beispiel #2
0
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;
}
Beispiel #3
0
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);
}
Beispiel #4
0
	string GetReturnValue(Context &context, uint64 value)
	{
		return context.FormatUnsigned(value);
	}
Beispiel #5
0
	string GetParameterValue(Context &context, Parameter *,
				 const void *address)
	{
		return context.FormatUnsigned(get_value<Type>(address));
	}