Ethereal-dev: Re: [Ethereal-dev] guint128

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 09 Jan 2005 12:51:52 -0800
Stefano Pettini wrote:

Any suggestion?

The only suggestion I have is the same one I gave in my previous message:

You'd have to write your own code, or find code, to do whatever's necessary to support integral data types bigger than 64 bits.

You're not going to get guint128, as few if any C compilers have native support for 128-bit integers, so you're going to have to either write your own code to convert strings giving a decimal or hex representation to 128-bit integers and *vice versa*, and use that to add support for FT_UINT128, or find code that does that, or use a bignum library (in which case I'd just call it FT_UINT or something such as that, as there wouldn't be a fixed limit on the size of the number).