10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::utl::MutableDataSpan Class Referenceabstract

#include <MutableDataSpan.h>

Detailed Description

Extends DataSpan with mutable access to the underlying data.

This interface provides a mutable view of the data, allowing modification of the data.

Inheritance diagram for tenduke::utl::MutableDataSpan:
tenduke::utl::DataSpan tenduke::utl::BinaryData tenduke::utl::FixedSizeBinaryData tenduke::utl::SimpleBuffer

Public Member Functions

virtual unsigned char * data ()=0
 Returns a mutable view of the underlying data.
virtual const unsigned char * data () const=0
 Returns a pointer to the beginning of the underlying sequence.
Public Member Functions inherited from tenduke::utl::DataSpan
virtual std::size_t size_bytes () const =0
 Returns the size of the span in bytes.

Member Function Documentation

◆ data() [1/2]

virtual const unsigned char * tenduke::utl::DataSpan::data ( ) const
virtual

Returns a pointer to the beginning of the underlying sequence.

This provides a read-only view of the data.

Implements tenduke::utl::DataSpan.

◆ data() [2/2]

virtual unsigned char * tenduke::utl::MutableDataSpan::data ( )
pure virtual

Returns a mutable view of the underlying data.

This provides a writable view of the data, allowing modification of the data.

Returns
the mutable view

Implemented in BinaryData, and tenduke::utl::BinaryData.


The documentation for this class was generated from the following file: