目录
目录README.md

DataConvertible

Purpose

Convert any Swift type to Data and initialize any Swift type from Data.

Usage

// T can be Data, String, Int, Int8, Int16, Int32, Int64, Float, Double, Date, Array, Set, Dictionary
let x: T

// Return the content of x as Data
x.binaryData

// Initialize an instance of type T from the content of a Data value
let y = T(binaryData: d) 

Author: Raphaël Wach

关于
43.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号