new ver
This commit is contained in:
@@ -384,19 +384,6 @@ fileprivate class UniffiHandleMap<T> {
|
||||
// Public interface members begin here.
|
||||
|
||||
|
||||
fileprivate struct FfiConverterUInt64: FfiConverterPrimitive {
|
||||
typealias FfiType = UInt64
|
||||
typealias SwiftType = UInt64
|
||||
|
||||
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> UInt64 {
|
||||
return try lift(readInt(&buf))
|
||||
}
|
||||
|
||||
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
|
||||
writeInt(&buf, lower(value))
|
||||
}
|
||||
}
|
||||
|
||||
fileprivate struct FfiConverterString: FfiConverter {
|
||||
typealias SwiftType = String
|
||||
typealias FfiType = RustBuffer
|
||||
@@ -434,19 +421,19 @@ fileprivate struct FfiConverterString: FfiConverter {
|
||||
writeBytes(&buf, value.utf8)
|
||||
}
|
||||
}
|
||||
public func getSecretValue(givenTime: UInt64, userAgent: String, url: String) -> String {
|
||||
public func getSecretValue(httpTime: String, userAgent: String, url: String) -> String {
|
||||
return try! FfiConverterString.lift(try! rustCall() {
|
||||
uniffi_hublib_fn_func_get_secret_value(
|
||||
FfiConverterUInt64.lower(givenTime),
|
||||
FfiConverterString.lower(httpTime),
|
||||
FfiConverterString.lower(userAgent),
|
||||
FfiConverterString.lower(url),$0
|
||||
)
|
||||
})
|
||||
}
|
||||
public func recreateSecretValue(givenTime: UInt64, userAgent: String, url: String, gottenValue: String) -> String {
|
||||
public func recreateSecretValue(httpDate: String, userAgent: String, url: String, gottenValue: String) -> String {
|
||||
return try! FfiConverterString.lift(try! rustCall() {
|
||||
uniffi_hublib_fn_func_recreate_secret_value(
|
||||
FfiConverterUInt64.lower(givenTime),
|
||||
FfiConverterString.lower(httpDate),
|
||||
FfiConverterString.lower(userAgent),
|
||||
FfiConverterString.lower(url),
|
||||
FfiConverterString.lower(gottenValue),$0
|
||||
@@ -469,10 +456,10 @@ private var initializationResult: InitializationResult = {
|
||||
if bindings_contract_version != scaffolding_contract_version {
|
||||
return InitializationResult.contractVersionMismatch
|
||||
}
|
||||
if (uniffi_hublib_checksum_func_get_secret_value() != 1475) {
|
||||
if (uniffi_hublib_checksum_func_get_secret_value() != 32241) {
|
||||
return InitializationResult.apiChecksumMismatch
|
||||
}
|
||||
if (uniffi_hublib_checksum_func_recreate_secret_value() != 37917) {
|
||||
if (uniffi_hublib_checksum_func_recreate_secret_value() != 13679) {
|
||||
return InitializationResult.apiChecksumMismatch
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user