Typedefs | |
| typedef enum _cpl_type_ | cpl_type |
| The type code type. More... | |
Enumerations | |
| enum | _cpl_type_ { CPL_TYPE_FLAG_ARRAY, CPL_TYPE_INVALID, CPL_TYPE_CHAR, CPL_TYPE_UCHAR, CPL_TYPE_BOOL, CPL_TYPE_INT, CPL_TYPE_UINT, CPL_TYPE_LONG, CPL_TYPE_ULONG, CPL_TYPE_FLOAT, CPL_TYPE_DOUBLE, CPL_TYPE_POINTER, CPL_TYPE_STRING } |
| The CPL type codes and flags. More... | |
Functions | |
| size_t | cpl_type_sizeof (cpl_type type) |
| Compute the size of a type. More... | |
char, int, float, etc.). These type codes may be used to indicate the type of a value stored in another object, the value of a property or the pixel of an image for instance. In addition, a utility function is provided to compute the size, which is required to store a value of the type indicated by a given type code.
The module
#include <cpl_types.h>
|
|
The type code type.
|
|
|
|
Compute the size of a type.
CPL_TYPE_FLOAT is what you would expect from the C sizeof() operator. For arrays, i.e. types having the CPL_TYPE_FLAG_ARRAY set the returned size is not the size of a pointer to CPL_TYPE_FLOAT for instance, but the size of its fundamental type, i.e. the returned size is same as for the type CPL_TYPE_FLOAT.
Especially for the type |
1.2.14 written by Dimitri van Heesch,
© 1997-2002