Swift converting signed array of Int [int8] to unsigned array of Int [UInt8]

Viewed 3884

How to convert signed array of [Int8] to unsigned array of [UInt8].

 let arryData: [Int8] =  [-108, 11, -107, -14, 35, -57, -116, 118, 54, 91, 12, 67, 21, 29, -44, 111]

I just want to convert this above into array of Unsigned [UInt8]. How to achieve this in swift.? Thanks in advance.

2 Answers
Related