Contents

subscript(unchecked:)

Accesses the byte at the specified offset in the span.

Declaration

subscript(unchecked byteOffset: Int) -> UInt8 { get }

Parameters

  • byteOffset:

    The offset of the byte to access. byteOffset must be greater than or equal to zero, and less than byteCount.

Overview

This subscript does not validate byteOffset. Using this subscript with an invalid byteOffset results in undefined behaviour.