logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

GD_SIZE — report the size of a GetData data sample

Description

       The  GD_SIZE() preprocessor macro returns the size in bytes of a single sample of data of the type speci‐
       fied by type, which should be one of the symbols:

              GD_NULL, GD_UINT8, GD_INT8, GD_UINT16, GD_INT16, GD_UINT32, GD_INT32, GD_FLOAT32, GD_FLOAT64,
              GD_COMPLEX64, GD_COMPLEX128, GD_STRING, GD_UNKNOWN.

       Passing GD_NULL or GD_UNKNOWN to this macro will return zero.  Passing GD_STRING will return sizeof(constchar*).  For the other types, the value returned is simply the bit-size encoded in the type symbol divid‐
       ed by eight, so, e.g., GD_SIZE(GD_COMPLEX64) will return 8.

       No error checking is performed on type: behaviour resulting from passing something other than the symbols
       listed above to this macro is unspecified.  See gd_getdata(3) for the meaning of the above symbols.

History

       The GD_SIZE() macro appeared in GetData-0.3.0

Name

       GD_SIZE — report the size of a GetData data sample

See Also

gd_getdata(3)

Version 0.10.0                                  25 December 2016                                      GD_SIZE(3)

Synopsis

#include<getdata.h>intGD_SIZE(gd_type_ttype);

See Also