Cenny Active Member Licensed User Longtime User Nov 5, 2015 #1 Hi, I am looking for a methode to extract the single byte values from a 32 bit integer. For instance, 63007. how can i calculate the four bytes to be resp. 0,0,-9,31? Cenny
Hi, I am looking for a methode to extract the single byte values from a 32 bit integer. For instance, 63007. how can i calculate the four bytes to be resp. 0,0,-9,31? Cenny
Erel B4X founder Staff member Licensed User Longtime User Nov 5, 2015 #2 B4X: Dim bc As ByteConverter Dim bytes() As Byte = bc.IntsToBytes(Array As Int(63007)) Upvote 0
Cenny Active Member Licensed User Longtime User Nov 6, 2015 #3 Erel said: B4X: Dim bc As ByteConverter Dim bytes() As Byte = bc.IntsToBytes(Array As Int(63007)) Click to expand... Thank you Erel, I was not aware of this. Upvote 0
Erel said: B4X: Dim bc As ByteConverter Dim bytes() As Byte = bc.IntsToBytes(Array As Int(63007)) Click to expand... Thank you Erel, I was not aware of this.