Add two utility functions to lldbutil.py:

o int_to_bytearray()
o bytearray_to_int()

They return/interpret the bytearray in the little endian format.
For big endian, simply perform ba.reverse() on the bytearray object.

And modify TestProcessAPI.py to take advantage of the functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126813 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed