文件名称:迅捷的MemoryLayout-Swift开发
文件大小:77KB
文件格式:ZIP
更新时间:2024-06-15 23:13:36
Swift Miscellaneous
Swift MemoryLayout Swift MemoryLayout swift版本=>:swift 5.0 Swift Struct元组类协议枚举SwiftCore Bool可选字符串字符串数组设置字典Swift Struct struct StructValue {let a:Int8 = 4 let b:Int16 = 6 let c:Int32 = 8} var structValue = StructValue()let structValuePointer = withUnsafePointer(to:&structValue){UnsafeMutableRawPointer(mutating:$ 0)} structValuePointer.advanced(by:2).assumingMemoryBound(to:Int16.self).initialize(to:99)// structVal
【文件预览】:
Swift-MemoryLayout-master
----SwiftCore()
--------Array.swift(2KB)
--------Set.swift(2KB)
--------String.swift(6KB)
--------Bool.swift(704B)
--------Optional.swift(1KB)
--------Dictionary.swift(6KB)
--------Character.swift(882B)
----README.md(5KB)
----SwiftDemo()
--------SwiftDemo()
--------SwiftDemo.xcodeproj()
----Swift()
--------Class.swift(11KB)
--------Struct.swift(579B)
--------Protocol.swift(3KB)
--------Tuple.swift(787B)
--------Enum.swift(1KB)