Arf Well-Known Member Licensed User Longtime User Feb 27, 2014 #1 I am looking for a function that must exist, to copy blocks of data from one place to another. The source is a Byte array, the destination is a custom Type structure, and I'm a bit lost without my c++ pointers.
I am looking for a function that must exist, to copy blocks of data from one place to another. The source is a Byte array, the destination is a custom Type structure, and I'm a bit lost without my c++ pointers.
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2014 #2 Basic4android is based on the JVM (or Dalvik virtual machine). There is no simple way to cast bytes to objects. You can use RandomAccessFile.WriteObject to convert a Type to an array of bytes and ReadObject to convert it to a new instance (also see KeyValueStore class). Upvote 0
Basic4android is based on the JVM (or Dalvik virtual machine). There is no simple way to cast bytes to objects. You can use RandomAccessFile.WriteObject to convert a Type to an array of bytes and ReadObject to convert it to a new instance (also see KeyValueStore class).