Electromagnetic Template Library (EMTL)
Loading...
Searching...
No Matches
emFakeStorage Class Reference

Like emFixStorage but doesn't actually store anything. More...

#include <fix.h>

Public Member Functions

size_t size () const
 Size of written data in bytes.
 
decltype(std::ignore) * jump_forward (std::ptrdiff_t &dif, size_t bytes) const
 moves pointer to bytes and returns a pointer to data there
 
decltype(std::ignore) * jump_aligned (std::ptrdiff_t &dif, size_t bytes) const
 moves dif shift to the nearest position aligned in bytes
 

Detailed Description

Like emFixStorage but doesn't actually store anything.

Just count sizes. It makes sure to reserve just enough space to accomodate writes made through pointers.

Member Function Documentation

◆ jump_aligned()

decltype(std::ignore) * emFakeStorage::jump_aligned ( std::ptrdiff_t &  dif,
size_t  bytes 
) const
inline

moves dif shift to the nearest position aligned in bytes

Returns
a pointer to the found position

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