Structure
DispatchData
struct DispatchData
Topics
Initializers
init(bytes:)Initialize aDatawith copied memory content.init(bytesNoCopy:deallocator:)Initialize aDatawithout copying the bytes.
Instance Properties
Instance Methods
func append(_:)Append bytes to the data.func append(UnsafePointer<UInt8>, count: Int)Append bytes to the data.func copyBytes(to:count:)Copy the contents of the data to a pointer.func copyBytes(to:from:)Copy a subset of the contents of the data to a pointer.func enumerateBytes((UnsafeBufferPointer<UInt8>, Int, inout Bool) -> Void)func enumerateBytes(block: (UnsafeBufferPointer<UInt8>, Int, inout Bool) -> Void)func index(after: DispatchData.Index) -> DispatchData.Indexfunc index(before: DispatchData.Index) -> DispatchData.Indexfunc makeIterator() -> DispatchData.IteratorAn iterator over the contents of the data.func region(location: Int) -> (data: DispatchData, offset: Int)func subdata(in: Range<DispatchData.Index>) -> DispatchDataReturn a new copy of the data in a specified range.func withUnsafeBytes<Result, ContentType>(body: (UnsafePointer<ContentType>) throws -> Result) rethrows -> Result
Subscripts
Type Aliases
Type Properties
Enumerations
Relationships
Conforms To
DataProtocolSwift.BidirectionalCollectionSwift.CollectionSwift.RandomAccessCollectionSwift.Sequence