예제 #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
파일: MFT.py 프로젝트: zealotous/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)
예제 #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
파일: MFT.py 프로젝트: zealotous/INDXParse
 def structure_size(buf, offset, parent):
     b = read_byte(buf, offset)
     return (b >> 4) + (b & 0x0F) + 1
예제 #6
0
파일: MFT.py 프로젝트: zealotous/INDXParse
 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)