Swift/C Integration
Budget: $250 – $750 USD
Do these terms sound familiar to you?
UnsafeMutableBufferPointer
UnsafeRawBufferPointer
withUnsafePointer (T, Result)(to: T, (UnsafePointer(T)) throws -) Result) rethrows -) Result
MemoryLayout
UnsafeMutableBufferPointer
Swift Package Manager
Swift-C interoperability
if the answer is yes, then read on:
We have a C library that needs to be used in a Swift project.
The library's function is to establish secure communication between a server entity and a client entity. The library already contains a demo implementation (for Arduino) in C++ (about 800 lines including comments and boilerplate code) for your reference (it establishes a secure connection between two Arduinos using BLE)
We need this C library to be packaged in an existing XCode Project (we will send it to you), using Swift types, and properly memory managed using best practices for manual memory management of the C code. You don't need to expose every single API, just enough interface to be able to write the demo Arduino implementation in Swift excluding any BLE stuff.
For someone who has experience with writing Swift Packages, C - Swift interoperability code - this should be a straightforward task.
UnsafeMutableBufferPointer
UnsafeRawBufferPointer
withUnsafePointer (T, Result)(to: T, (UnsafePointer(T)) throws -) Result) rethrows -) Result
MemoryLayout
UnsafeMutableBufferPointer
Swift Package Manager
Swift-C interoperability
if the answer is yes, then read on:
We have a C library that needs to be used in a Swift project.
The library's function is to establish secure communication between a server entity and a client entity. The library already contains a demo implementation (for Arduino) in C++ (about 800 lines including comments and boilerplate code) for your reference (it establishes a secure connection between two Arduinos using BLE)
We need this C library to be packaged in an existing XCode Project (we will send it to you), using Swift types, and properly memory managed using best practices for manual memory management of the C code. You don't need to expose every single API, just enough interface to be able to write the demo Arduino implementation in Swift excluding any BLE stuff.
For someone who has experience with writing Swift Packages, C - Swift interoperability code - this should be a straightforward task.