1
2
3
4
5
6
7
8
9GD_SIZE(3)                          GETDATA                         GD_SIZE(3)
10
11
12

NAME

14       GD_SIZE — report the size of a GetData data sample
15
16

SYNOPSIS

18       #include <getdata.h>
19
20       int GD_SIZE(gd_type_t type);
21
22

DESCRIPTION

24       The  GD_SIZE() preprocessor macro returns the size in bytes of a single
25       sample of data of the type specified by type, which should  be  one  of
26       the symbols:
27
28              GD_NULL, GD_UINT8, GD_INT8, GD_UINT16, GD_INT16, GD_UINT32,
29              GD_INT32, GD_FLOAT32, GD_FLOAT64, GD_COMPLEX64, GD_COMPLEX128,
30              GD_STRING, GD_UNKNOWN.
31
32       Passing  GD_NULL or GD_UNKNOWN to this macro will return zero.  Passing
33       GD_STRING will return sizeof(const char*).  For the  other  types,  the
34       value returned is simply the bit-size encoded in the type symbol divid‐
35       ed by eight, so, e.g., GD_SIZE(GD_COMPLEX64) will return 8.
36
37       No error checking is performed on type: behaviour resulting from  pass‐
38       ing  something other than the symbols listed above to this macro is un‐
39       specified.  See gd_getdata(3) for the meaning of the above symbols.
40
41

HISTORY

43       The GD_SIZE() macro appeared in GetData-0.3.0
44
45

SEE ALSO

47       gd_getdata(3)
48
49
50
51Version 0.10.0                 25 December 2016                     GD_SIZE(3)
Impressum