iOS swiftsqlite第三方类型不匹配问题
2019-11-28 本文已影响0人
懿懿懿懿懿懿懿
public var datatypeValue: Blob {
#if swift(>=5.0)
return withUnsafeBytes { (pointer: UnsafeRawBufferPointer) -> Blob in
return Blob(bytes: pointer.baseAddress!, length: count)
}
#else
return withUnsafeBytes { (pointer: UnsafePointer<UInt8>) -> Blob in
return Blob(bytes: pointer, length: count)
}
#endif
}