|
|
|
@ -149,73 +149,19 @@ function syncEnums(enumGroup, id, newEnumName, callback) {
|
|
|
|
|
|
|
|
|
|
const type_items_len = {
|
|
|
|
|
'uint8be': 1,
|
|
|
|
|
'uint8le': 1,
|
|
|
|
|
'int8be': 1,
|
|
|
|
|
'int8le': 1,
|
|
|
|
|
'uint16be': 1,
|
|
|
|
|
'uint16le': 1,
|
|
|
|
|
'int16be': 1,
|
|
|
|
|
'int16le': 1,
|
|
|
|
|
'int16be1': 1,
|
|
|
|
|
'int16le1': 1,
|
|
|
|
|
'uint32be': 2,
|
|
|
|
|
'uint32le': 2,
|
|
|
|
|
'uint32sw': 2,
|
|
|
|
|
'uint32sb': 2,
|
|
|
|
|
'int32be': 2,
|
|
|
|
|
'int32le': 2,
|
|
|
|
|
'int32sw': 2,
|
|
|
|
|
'int32sb': 2,
|
|
|
|
|
'uint64be': 4,
|
|
|
|
|
'uint64le': 4,
|
|
|
|
|
'int64be': 4,
|
|
|
|
|
'int64le': 4,
|
|
|
|
|
'floatbe': 2,
|
|
|
|
|
'floatle': 2,
|
|
|
|
|
'floatsw': 2,
|
|
|
|
|
'floatsb': 2,
|
|
|
|
|
'doublebe': 4,
|
|
|
|
|
'doublele': 4,
|
|
|
|
|
'string': 0,
|
|
|
|
|
'ieee754': 2
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const _rmap = {
|
|
|
|
|
0: 15,
|
|
|
|
|
1: 14,
|
|
|
|
|
2: 13,
|
|
|
|
|
3: 12,
|
|
|
|
|
4: 11,
|
|
|
|
|
5: 10,
|
|
|
|
|
6: 9,
|
|
|
|
|
7: 8,
|
|
|
|
|
8: 7,
|
|
|
|
|
9: 6,
|
|
|
|
|
10: 5,
|
|
|
|
|
11: 4,
|
|
|
|
|
12: 3,
|
|
|
|
|
13: 2,
|
|
|
|
|
14: 1,
|
|
|
|
|
15: 0
|
|
|
|
|
1: 14
|
|
|
|
|
};
|
|
|
|
|
const _dmap = {
|
|
|
|
|
0: 0,
|
|
|
|
|
1: 1,
|
|
|
|
|
2: 2,
|
|
|
|
|
3: 3,
|
|
|
|
|
4: 4,
|
|
|
|
|
5: 5,
|
|
|
|
|
6: 6,
|
|
|
|
|
7: 7,
|
|
|
|
|
8: 8,
|
|
|
|
|
9: 9,
|
|
|
|
|
10: 10,
|
|
|
|
|
11: 11,
|
|
|
|
|
12: 12,
|
|
|
|
|
13: 13,
|
|
|
|
|
14: 14,
|
|
|
|
|
15: 15
|
|
|
|
|
1: 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function address2alias(id, address, isDirect, offset) {
|
|
|
|
|
if (typeof address === 'string') address = parseInt(address, 10);
|
|
|
|
|
|
|
|
|
|