Android-cuttlefish cvd tool
|
#include <static_vec.h>
Public Member Functions | |
static_vec () | |
static_vec (T *begin, T *end) | |
template<size_t s> | |
static_vec (T(&arr)[s]) | |
static_vec (const static_vec &)=default | |
static_vec (static_vec &&)=default | |
static_vec & | operator= (const static_vec &)=default |
static_vec & | operator= (static_vec &&)=default |
T * | data () |
const T * | data () const |
size_t | size () const |
T * | begin () |
T * | end () |
const T * | begin () const |
const T * | end () const |
Private Attributes | |
T * | data_ |
size_t | size_ |
teeui::static_vec leads a double life.
When compiling with TEEUI_USE_STD_VECTOR it is just an alias for std::vector. HAL services using this library must use this option for safe handling of message buffers.
When compiling without TEEUI_USE_STD_VECTOR this class works more like a span that does not actually own the buffer if wraps. This is the behavior expected by generic_operation.h, which is used inside a heap-less implementation of a confirmationui trusted app.
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
private |
|
private |