Represents a contiguous region of memory. More...
#include <arena.hpp>
Public Member Functions | |
byte_span ()=default | |
Construct a default span. | |
byte_span (void *pointer, std::size_t size) | |
Construct a span given a pointer and size. More... | |
char * | pointer () const |
Returns the underlying pointer. | |
std::size_t | size () const |
Returns the size of the span. | |
char * | end () const |
Returns the end of the span. | |
bool | is_valid () const |
Returns true if this span is valid (non-null), false otherwise. | |
bool | operator< (byte_span const &span) const |
Used by std::set to compare spans. | |
Represents a contiguous region of memory.
|
inline |
Construct a span given a pointer and size.
pointer | The address for the beginning of the span. |
size | The size of the span. |