Discovering the size of various integral types on a particular platform can be difficult, and special-casing code for various platforms produces code which is frustrating to read and port. Therefore, NASD defines several basic types which should always be used as the basis for defining other types. These are:
Type name | Description |
---|---|
nasd_byte | One byte |
nasd_int8 | An eight-bit signed integer |
nasd_uint8 | An eight-bit unsigned integer |
nasd_int16 | A sixteen-bit signed integer |
nasd_uint16 | A sixteen-bit unsigned integer |
nasd_int32 | A thirty-two-bit signed integer |
nasd_uint32 | A thirty-two-bit unsigned integer |
nasd_int64 | A sixty-four-bit signed integer |
nasd_uint64 | A sixty-four-bit unsigned integer |
_t
. This is to distinguish
these basic "primitive" types from other derived types. Other types
should maintain the _t
convention.
All other types in NASD should ultimately be defined in terms of these
types.
![]() | ![]() | ![]() |
---|---|---|
Programming overview | Output | NASD Programmer's Documentation |