Mercurial > hg > octave-nkf
diff liboctave/oct-inttypes.h @ 4949:f6b63ff1119b
[project @ 2004-08-31 19:17:44 by jwe]
author | jwe |
---|---|
date | Tue, 31 Aug 2004 19:17:45 +0000 |
parents | 1a499d0c58f5 |
children | bfd57b466752 |
line wrap: on
line diff
--- a/liboctave/oct-inttypes.h +++ b/liboctave/oct-inttypes.h @@ -237,6 +237,9 @@ T value (void) const { return ival; } + const unsigned char * iptr (void) const + { return reinterpret_cast<const unsigned char *> (& ival); } + bool operator ! (void) const { return ! ival; } octave_int<T> operator + (void) const { return *this; } @@ -269,6 +272,8 @@ static int nbits (void) { return sizeof (T) * CHAR_BIT; } + static int byte_size (void) { return sizeof(T); } + private: T ival;