Clean example and parser type comments
This commit is contained in:
@ -100,7 +100,8 @@ def bmms_bin_entry_genericparser(pcDataBuf):
|
||||
|
||||
match uiType:
|
||||
|
||||
case 0x01000000 | 0xa1000000 :
|
||||
case 0x01000000 | 0xa1000000 :
|
||||
# int32 and int32 array
|
||||
|
||||
if (uiSize - st_ReadedBytes) % 4 != 0:
|
||||
mEntry['Val'] = []
|
||||
@ -116,6 +117,7 @@ def bmms_bin_entry_genericparser(pcDataBuf):
|
||||
mEntry['Val'] = mList
|
||||
|
||||
case 0x02000000 | 0xa2000000 :
|
||||
# uint32 and uint32 array
|
||||
|
||||
if (uiSize - st_ReadedBytes) % 4 != 0:
|
||||
mEntry['Val'] = []
|
||||
@ -131,6 +133,7 @@ def bmms_bin_entry_genericparser(pcDataBuf):
|
||||
mEntry['Val'] = mList
|
||||
|
||||
case 0x03000000 |0xa3000000 :
|
||||
# float32 and float32 array
|
||||
|
||||
if (uiSize - st_ReadedBytes) % 4 != 0:
|
||||
mEntry['Val'] = []
|
||||
@ -146,6 +149,7 @@ def bmms_bin_entry_genericparser(pcDataBuf):
|
||||
mEntry['Val'] = mList
|
||||
|
||||
case 0x04000000 | 0xa4000000:
|
||||
# double64 and double64 array
|
||||
|
||||
if (uiSize - st_ReadedBytes) % 8 != 0:
|
||||
mEntry['Val'] = []
|
||||
@ -158,9 +162,11 @@ def bmms_bin_entry_genericparser(pcDataBuf):
|
||||
mList.append(struct.unpack('!d', pcDataBuf[st_ReadedBytes:st_ReadedBytes + 8][:8])[0])
|
||||
st_ReadedBytes += 8
|
||||
|
||||
mEntry['Val'] = []
|
||||
mEntry['Val'] = mList
|
||||
|
||||
case 0x05000000 | 0xa5000000 :
|
||||
# string and string array
|
||||
|
||||
sList = pcDataBuf[st_ReadedBytes:st_ReadedBytes + uiSize-8].split(b'\b')
|
||||
mList = []
|
||||
for mStr in sList[1:]:
|
||||
@ -168,7 +174,8 @@ def bmms_bin_entry_genericparser(pcDataBuf):
|
||||
mList
|
||||
mEntry['Val'] = mList
|
||||
|
||||
case 0xc5000000 :
|
||||
case 0xc5000000 :
|
||||
# string-string map
|
||||
mEntry['Val'] = pcDataBuf[st_ReadedBytes:st_ReadedBytes + uiSize-8]
|
||||
|
||||
case other:
|
||||
|
Reference in New Issue
Block a user