iOS Question Change array of bytes into array of int

schimanski

Well-Known Member
Licensed User
In B4A I have converted an array of bytes into an array of int by using the initialize3-Method of RandomAccessFile. How is it possible to change my bytes into int under B4i?

B4X:
Dim UKSP_Puffer_Bytes(100) As Byte
Dim UKSP_Puffer(100) As Int 
Dim Bytes_wandeln As RandomAccessFile 

Bytes_wandeln.Initialize3(UKSP_Puffer_Bytes,False)
     
For i=0 To UKSP_Puffer.Length         
     
   'Umwandlung der vorzeichenbehafteten Bytes (-127 bis 128) in vorzeichenlose Bytes (0 bis 255)
   UKSP_Puffer(i)=Bytes_wandeln.ReadUnsignedByte(i)
       
    If UKSP_Puffer(i)=13 Then           
        .....
 
Top