RawSpan
RawSpan represents a contiguous region of memory which contains initialized bytes.
Declaration
@frozen struct RawSpanOverview
A RawSpan instance is a non-owning, non-escaping view into memory. When a RawSpan is created, it inherits the lifetime of the container owning the contiguous memory, ensuring temporal safety and avoiding use-after-free errors. Operations on RawSpan are bounds-checked, ensuring spatial safety and avoiding buffer overflow errors.
Topics
Initializers
Instance Properties
Instance Methods
byteOffsets(of:)extracting(_:)extracting(_:)extracting(_:)extracting(droppingFirst:)extracting(droppingLast:)extracting(first:)extracting(last:)extracting(unchecked:)extracting(unchecked:)isIdentical(to:)unsafeLoad(fromByteOffset:as:)unsafeLoad(fromUncheckedByteOffset:as:)unsafeLoadUnaligned(fromByteOffset:as:)unsafeLoadUnaligned(fromUncheckedByteOffset:as:)withUnsafeBytes(_:)