Base Framework
|
#include <base/mem/Span.h>
Public Member Functions | |
Span () noexcept | |
Span (TYPE *_buffer, MemorySize _size) noexcept | |
Span (TYPE *_buffer, const TYPE *end) noexcept | |
TYPE * | begin () noexcept |
TYPE * | end () noexcept |
const TYPE * | cbegin () const noexcept |
const TYPE * | cend () const noexcept |
MemorySize | getSize () const noexcept |
TYPE & | operator[] (MemorySize index) noexcept |
const TYPE & | operator[] (MemorySize index) const noexcept |
operator bool () const noexcept | |
Public Attributes | |
TYPE * | buffer = nullptr |
MemorySize | size = 0 |
Sequence of values in memory. The memory is not owned by class. You must ensure that the memory is not released.
Initializes span.
Initializes span.
|
inlinenoexcept |
Begin iterator.
|
inlinenoexcept |
Begin iterator.
|
inlinenoexcept |
End iterator.
|
inlinenoexcept |
End iterator.
|
inlinenoexcept |
Returns the size.
|
inlinenoexcept |
Returns true if non-empty.
|
inlinenoexcept |
Returns the item at the given index.
|
inlinenoexcept |
Returns the item at the given index.