DispatchData
An object that manages a memory-based data buffer and exposes it as a contiguous block of memory.
Declaration
struct DispatchDataOverview
The memory buffer managed by this object may be a single contiguous block of memory, or it may consist of multiple discontiguous blocks. For the discontiguous case, the dispatch data object makes it appear as if the memory is contiguous.
Topics
Creating a Dispatch Data Structure
Appending Data to the Buffer
Copying Bytes
Accessing Buffer Data
Iterating Over the Buffer Contents
Retrieving Buffer Subsequences
Combining Sequence Elements
append(_:)append(_:)append(_:)append(_:count:)copyBytes(to:count:)copyBytes(to:count:)copyBytes(to:from:)copyBytes(to:from:)copyBytes(to:from:)enumerateBytes(_:)makeIterator()region(location:)subdata(in:)withUnsafeBytes(body:)