|
OpenZGY/C++ API and Internals (ALPHA)
Access seismic data stored in ZGY format.
|
#include <meta.h>
Public Types | |
| typedef std::vector< std::uint8_t > | podbytes_t |
Public Member Functions | |
| virtual podbytes_t | podbytes () const =0 |
| virtual void | dump (std::ostream &out, const std::string &prefix="")=0 |
Currently I am having the access function for foo[N] return std::array instead of a raw pointer. This is inefficient but simplifies the case where the result is a derived value. I might change my mind about this.
The ptr_to_array method allows writing return ptr_to_array<float,3>(_foo); instead of return std::array<float,3>{_foo[0], _foo[1], _foo[2]}; and also tries to handle the case when _foo is misaligned.
1.8.17