subscript(unchecked:)
Accesses the byte at the specified offset in the span.
Declaration
subscript(unchecked byteOffset: Int) -> UInt8 { get set }Parameters
- byteOffset:
The offset of the byte to access.
byteOffsetmust be greater than or equal to zero, and less thanbyteCount.
Overview
This subscript does not validate byteOffset. Using this subscript with an invalid byteOffset results in undefined behaviour.