Protocolswift 6.0.1FoundationEssentials
MutableDataProtocol
- iOS
- 8.0+
- macOS
- 10.10+
- tvOS
- 9.0+
- watchOS
- 2.0+
protocol MutableDataProtocol : DataProtocol, MutableCollection, RangeReplaceableCollection
Browse conforming typesprotocol MutableDataProtocol : DataProtocol, MutableCollection, RangeReplaceableCollection
import FoundationEssentials
protocol DataProtocol : RandomAccessCollection where Self.Element == UInt8, Self.SubSequence : DataProtocol
protocol MutableCollection<Element> : Collection where Self.SubSequence : MutableCollection
A collection that supports subscript assignment.
protocol RangeReplaceableCollection<Element> : Collection where Self.SubSequence : RangeReplaceableCollection
A collection that supports replacement of an arbitrary subrange of elements with the elements of another collection.
protocol BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
protocol RandomAccessCollection<Element> : BidirectionalCollection where Self.Indices : RandomAccessCollection, Self.SubSequence : RandomAccessCollection
A collection that supports efficient random-access index traversal.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
mutating func resetBytes<R>(in range: R) where R : RangeExpression, Self.Index == R.Bound
Replaces the contents of the buffer at the given range with zeroes.
mutating func resetBytes<R>(in range: R) where R : RangeExpression, Self.Index == R.Bound