Contents

removeLast(_:)

Remove the last n bytes from this span, returning the memory they occupy to the uninitialized state.

Declaration

mutating func removeLast(_ n: Int)

Parameters

  • n:

    The number of bytes to remove. n must not be negative or greater than byteCount.

Discussion

n must not be greater than byteCount.