Skip to content

roznet/swift2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

swift2c

This illustrate a warning I don't know how to get rid of in after upgrading to swift 5

My goal is to call a c function with a void* argument containing the pointer to a Data read from a file

I am getting the following warning after upgrading to swift 5

'withUnsafeBytes' is deprecated: use withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R instead

The real life project where this happened is here fit-sdk-swift and the file with the warning is line 62 of RZFitFile/src/RZFitFile.swift

About

Example to show problem converting argument to c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published