ProtocolFoundation5.9.0
MutableDataProtocol
protocol MutableDataProtocol : DataProtocol, MutableCollection, RangeReplaceableCollection
Supertypes
protocol BidirectionalCollection
A collection that supports backward as well as forward traversal.
protocol Collection
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
protocol DataProtocol
protocol MutableCollection
A collection that supports subscript assignment.
protocol RandomAccessCollection
A collection that supports efficient random-access index traversal.
protocol RangeReplaceableCollection
A collection that supports replacement of an arbitrary subrange of elements with the elements of another collection.
protocol Sequence
A type that provides sequential, iterated access to its elements.
Requirements
func resetBytes<R>(in: R
) Replaces the contents of the buffer at the given range with zeroes.