TargetInfo.sizeof#
- TargetInfo.sizeof(t)#
Return the sizeof(t) value for given target device.
- Parameters:
t ({str, ...}) – Specify types name. For complete support, one should implement the sizeof for the following type names: char, uchar, schar, byte, ubyte, short, ushort, int, uint, long, ulong, longlong, ulonglong, float, double, longdouble, complex, bool, size_t, ssize_t, wchar.
- Returns:
size – Byte-size of the input type. Dummy target info will not try to guess the sizeof of type and will return None.
- Return type:
{int, None}