Ejemplo n.º 1
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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def structure_size(buf, offset, parent):
     b = read_byte(buf, offset)
     return (b >> 4) + (b & 0x0F) + 1
Ejemplo n.º 4
0
 def structure_size(buf, offset, parent):
     return 0x42 + (read_byte(buf, offset + 0x40) * 2)
Ejemplo n.º 5
0
 def structure_size(buf, offset, parent):
     b = read_byte(buf, offset)
     return (b >> 4) + (b & 0x0F) + 1
Ejemplo n.º 6
0
 def structure_size(buf, offset, parent):
     return 0x42 + (read_byte(buf, offset + 0x40) * 2)
Ejemplo n.º 7
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)
Ejemplo n.º 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)