Contents

resetBytes(in:)

Sets a region of the data buffer to 0.

Declaration

mutating func resetBytes(in range: Range<Data.Index>)

Parameters

  • range:

    The range in the data to set to 0.

Discussion

If range exceeds the bounds of the data, then the data is resized to fit.

See Also

Creating Empty Data