Instance MethodSwiftFoundation
resetBytes(in:)
Replaces the contents of the buffer at the given range with zeroes.
Available because
Self
conforms toMutableDataProtocol
.
mutating func resetBytes<R>(in range: R) where R : RangeExpression, Self.Index == R.Bound
Overview
A default implementation is given in terms of replaceSubrange(_:with:)
.