Once I decided the built in ways were broken, I just built a bigger hammer:
def pythonByteString_to_jarray(pyString):
return jarray.array(((x if x < 128 else (x - 256)) for x in bytearray(pyString)),'b')
Once I decided the built in ways were broken, I just built a bigger hammer:
def pythonByteString_to_jarray(pyString):
return jarray.array(((x if x < 128 else (x - 256)) for x in bytearray(pyString)),'b')