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