示例#1
0
static void parseLong(const char*& p, Auth::IntField& f, size_t& loop)
{
	f.set(isc_vax_integer(p, sizeof(ULONG)));

	const size_t len2 = sizeof(ULONG) + 1;
	if (len2 > loop)
	{
		throw loop;
	}
	loop -= len2;

	p += sizeof(ULONG);
}
示例#2
0
static void parseLong(const char*& p, Auth::IntField& f, FB_SIZE_T& loop)
{
	LocalStatus s;
	f.set(&s, isc_vax_integer(p, sizeof(ULONG)));
	check(&s);
	f.setEntered(&s, 1);
	check(&s);

	const FB_SIZE_T len2 = sizeof(ULONG) + 1;
	if (len2 > loop)
	{
		throw loop;
	}
	loop -= len2;

	p += sizeof(ULONG);
}