NASD Programmer's Documentation
Basic NASD types

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 nameDescription
nasd_byteOne byte
nasd_int8An eight-bit signed integer
nasd_uint8An eight-bit unsigned integer
nasd_int16A sixteen-bit signed integer
nasd_uint16A sixteen-bit unsigned integer
nasd_int32A thirty-two-bit signed integer
nasd_uint32A thirty-two-bit unsigned integer
nasd_int64A sixty-four-bit signed integer
nasd_uint64A sixty-four-bit unsigned integer

It is worth noting that these types do not follow the convention of suffixing all defined types with _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.
<--- ---> ^<br>|<br>|
Programming overview Output NASD Programmer's Documentation