Example #1
0
def getAttributesData(ad_binary):
    vec = list(unpack_from(">IQI", ad_binary))
    attrSize = vec[-1]
    temp = []
    for i in ad_binary[16:16 + attrSize]:
        temp.append(i)
    attrData = tuple(temp)
    vec.append(attrData)
    return ss.AttrData(*vec)
Example #2
0
def getAttributesData(ad_binary):
    vec = list(unpack_from(">IQI", ad_binary))
    attrSize = vec[-1]
    attrData = ad_binary[16:16 + attrSize + (attrSize % 2)]
    vec.append(attrData)
    return ss.AttrData(*vec)