美文网首页
iOS swiftsqlite第三方类型不匹配问题

iOS swiftsqlite第三方类型不匹配问题

作者: 懿懿懿懿懿懿懿 | 来源:发表于2019-11-28 13:10 被阅读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
    }

    相关文章

      网友评论

          本文标题:iOS swiftsqlite第三方类型不匹配问题

          本文链接:https://www.haomeiwen.com/subject/qkfbwctx.html