Ejemplo n.º 1
0
 def from_byte_array(self, byte_array):
     value = u''
     for index in range(0, sizeof(byte_array) - INTERVAL, INTERVAL):
         wide_character = c_wchar.from_address(addressof(byte_array) + index).value
         value += wide_character
     result = value.replace('\x00', u'\n').splitlines()
     while u'' in result:
         result.remove(u'')
     return result
Ejemplo n.º 2
0
 def from_byte_array(self, byte_array):
     value = u''
     for index in range(0, sizeof(byte_array) - INTERVAL, INTERVAL):
         value += c_wchar.from_address(addressof(byte_array) + index).value
     return value