128 bit int

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

Before I write my own, does anyone know of a 128-bit integer class?
It needs basic operators (+,-,*,/) and a way to chop it up into
primitives, say a byte[].

There's nothing in the .Net framework for this, right?

Thanks.
 
Brian,

No, there is not. You could stuff it in a Guid (which is 128 bits), but
there are no arithmetic operators on it.

This is something I think that the framework could really use (a
BigNumber structure, for example).

Hope this helps.
 
Back
Top