Holds a pointer to a void array (with type information stored as a runtime element size paramenter) with a constant size.
More...
#include <bitcpy_sized_pointer.h>
|
template<typename T > |
| sized_pointer (T *const v, const size_t N) noexcept |
| Construct a new sized pointer object from a raw pointer and a passed size. More...
|
|
template<typename T , size_t N> |
| sized_pointer (T(&v)[N]) noexcept |
| Construct a new sized pointer object from the array itself. More...
|
|
size_t | bit_capacity () const noexcept |
| returns the number of bits in the array
|
|
|
void *const | value |
| the underlying pointer reinterpreted as a void* type
|
|
const size_t | size |
| size of the array
|
|
const uint_fast8_t | element_size |
| Number of bytes per element of the original array type, same as sizeof(T_original)
|
|
template<>
struct serdes::sized_pointer< void >
Holds a pointer to a void array (with type information stored as a runtime element size paramenter) with a constant size.
Construct a new sized pointer object from a raw pointer and a passed size.
- Template Parameters
-
T | original type of pointer |
- Parameters
-
v | pointer to the head of the array |
N | size of the array |
template<typename T , size_t N>
Construct a new sized pointer object from the array itself.
- Template Parameters
-
T | original type of pointer |
N | size of the array |
- Parameters
-
v | pointer to the head of the array |
The documentation for this struct was generated from the following file: