Skip to content

Instance MethodFoundationEssentials

resetBytes(in:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Replaces the contents of the data buffer with zeros for the provided range.
mutating func resetBytes<R>(in range: R) where R : RangeExpression, Self.Index == R.Bound

Parameters

range

The range of bytes to replace with zeros.