Contents

setOffset(_:)

Updates the byte offset of this slice.

Declaration

mutating func setOffset(_ offset: Int) throws(LowLevelRenderContextError)

Parameters

  • offset:

    The new byte offset into buffer at which this slice begins.

Discussion

Throws LowLevelRenderContextError if the new offset falls outside the buffer’s allocated capacity.