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.
nmust not be negative or greater thanbyteCount.
Discussion
n must not be greater than byteCount.