|
10Duke Enterprise C++ SDK
|
#include <DataSpan.h>
A span of binary data.
This interface represents a span of binary data, providing access to the data and its size.
The data is not guaranteed to be valid or accessible after the DataSpan object is destroyed.
This interface is modeled after std::span from C++ 20, but with a focus on binary data and read-only access.
Public Member Functions | |
| virtual const unsigned char * | data () const=0 |
| Returns a pointer to the beginning of the underlying sequence. | |
| virtual std::size_t | size_bytes () const=0 |
| Returns the size of the span in bytes. | |
|
pure virtual |
Returns a pointer to the beginning of the underlying sequence.
This provides a read-only view of the data.
|
pure virtual |
Returns the size of the span in bytes.