You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question, what is the best way to create an array of bytes ?
with a python list ?
In [1]: from jnius import autoclass
In [2]: byte_class = autoclass('java.lang.Byte')
In [3]: [byte_class(50), byte_class(60)]
Out[3]:
[<java.lang.Byte at 0x2296d70 jclass=java/lang/Byte jself=<jnius.LocalRef object at 0x19016e8>>,
<java.lang.Byte at 0x2296e30 jclass=java/lang/Byte jself=<jnius.LocalRef object at 0x1901698>>]
Thx !
The text was updated successfully, but these errors were encountered:
I have a question, what is the best way to create an array of bytes ?
with a python list ?
In [1]: from jnius import autoclass
In [2]: byte_class = autoclass('java.lang.Byte')
In [3]: [byte_class(50), byte_class(60)]
Out[3]:
[<java.lang.Byte at 0x2296d70 jclass=java/lang/Byte jself=<jnius.LocalRef object at 0x19016e8>>,
<java.lang.Byte at 0x2296e30 jclass=java/lang/Byte jself=<jnius.LocalRef object at 0x1901698>>]
Thx !
The text was updated successfully, but these errors were encountered: