Contents

resetBytes(in:)

Replaces with zeroes the contents of the receiver in a given range.

Declaration

func resetBytes(in range: NSRange)

Parameters

  • range:

    The range within the contents of the receiver to be replaced by zeros. The range must not exceed the bounds of the receiver.

Discussion

If the location of range isn’t within the receiver’s range of bytes, an NSRangeException is raised. The receiver is resized to accommodate the new bytes, if necessary.

See Also

Modifying Bytes