Skip to content

Commit

Permalink
Make the foreign executor FFI converter functions public
Browse files Browse the repository at this point in the history
  • Loading branch information
bendk committed Jun 22, 2023
1 parent 652f047 commit e95aa4f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ fileprivate struct FfiConverterForeignExecutor: FfiConverter {
// let's use `Int`, which is equivalent to `size_t`
typealias FfiType = Int

static func lift(_ value: FfiType) throws -> SwiftType {
public static func lift(_ value: FfiType) throws -> SwiftType {
UniFfiForeignExecutor(priority: TaskPriority(rawValue: numericCast(value)))
}
static func lower(_ value: SwiftType) -> FfiType {
public static func lower(_ value: SwiftType) -> FfiType {
numericCast(value.priority.rawValue)
}

static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
fatalError("FfiConverterForeignExecutor.read not implemented yet")
}
static func write(_ value: SwiftType, into buf: inout [UInt8]) {
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
fatalError("FfiConverterForeignExecutor.read not implemented yet")
}
}
Expand Down

0 comments on commit e95aa4f

Please sign in to comment.