示例#1
0
文件: MFT.py 项目: Joon-y/INDXParse
    def structure_size(buf, offset, parent):
        length = 0
        while True:
            b = read_byte(buf, offset + length)
            length += 1
            if b == 0:
                return length

            length += (b >> 4) + (b & 0x0F)
示例#2
0
    def structure_size(buf, offset, parent):
        length = 0
        while True:
            b = read_byte(buf, offset + length)
            length += 1
            if b == 0:
                return length

            length += (b >> 4) + (b & 0x0F)
示例#3
0
文件: MFT.py 项目: Joon-y/INDXParse
 def structure_size(buf, offset, parent):
     b = read_byte(buf, offset)
     return (b >> 4) + (b & 0x0F) + 1
示例#4
0
文件: MFT.py 项目: Joon-y/INDXParse
 def structure_size(buf, offset, parent):
     return 0x42 + (read_byte(buf, offset + 0x40) * 2)
示例#5
0
 def structure_size(buf, offset, parent):
     b = read_byte(buf, offset)
     return (b >> 4) + (b & 0x0F) + 1
示例#6
0
 def structure_size(buf, offset, parent):
     return 0x42 + (read_byte(buf, offset + 0x40) * 2)
示例#7
0
文件: Evt.py 项目: zrweger/python-evt
 def structure_size(buf, offset, parent):
     sub_auth_count = read_byte(buf, offset + 1)
     auth_size = SID_IDENTIFIER_AUTHORITY.structure_size(buf, offset + 2, parent)
     return 2 + auth_size + (sub_auth_count * 4)
示例#8
0
 def structure_size(buf, offset, parent):
     sub_auth_count = read_byte(buf, offset + 1)
     auth_size = SID_IDENTIFIER_AUTHORITY.structure_size(
         buf, offset + 2, parent)
     return 2 + auth_size + (sub_auth_count * 4)