Add 'byte' alias for uint8
This commit is contained in:
parent
7c5beda081
commit
483d1f2e39
|
@ -54,7 +54,7 @@ def get_type_size(type):
|
|||
return 4
|
||||
elif type == 'int16' or type == 'uint16':
|
||||
return 2
|
||||
elif type == 'int8' or type == 'uint8' or type == 'bool':
|
||||
elif type == 'int8' or type == 'uint8' or type == 'byte' or type == 'bool':
|
||||
return 1
|
||||
elif type == 'string':
|
||||
return count
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
int16 : int16_t
|
||||
uint8 : uint8_t
|
||||
int8 : int8_t
|
||||
byte : uint8_t
|
||||
bool : uint8_t
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue