Post

Replies

Boosts

Views

Activity

Comment on How to translate data from c language void * pointer to [UInt8 ] in swift code.
Hi MobileTen, Thank you for your reply. I follow your method to add the following code in swift: for value in 0..<5 { let thing = output.largeData.assumingMemoryBound(to: UInt8.self).advanced(by: value).pointee print(thing) } However, the output value of thing not the correctly. Is anything I've missed or wrong setting?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’23