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
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