Converting bytearray to short int in python

Viewed 12878

I have a long bytearray

barray=b'\x00\xfe\x4b\x00...

What would be the best way to convert it to a list of 2-byte integers?

4 Answers
Related