def wszarray_to_list(array):
    output = []
    offset = 0
    while offset < sizeof(array):
        sz = wstring_at(addressof(array) + offset*2)
        if sz:
            output.append(sz)
            offset += len(sz)+1
        else:
            break
    return output
dataset/ETHPy150Open grawity/hacks/hacks/Dead-projects/Win32/df.py/wszarray_to_list/original