Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
SysUtil.hpp File Reference
#include <cstring>
#include <cstdio>
#include <iosfwd>
+ Include dependency graph for SysUtil.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  moab
 

Class representing axis-aligned bounding box.


namespace  moab::SysUtil

Functions

void moab::SysUtil::setmem (void *mem, const void *value, unsigned value_size, size_t num_elem)
 Similar to memset, but accepts values larger than 1 char.
long moab::SysUtil::filesize (FILE *filp)
 Get size of file (if it is a regular file)
long moab::SysUtil::filesize (std::ifstream &str)
 Get size of file (if it is a regular file)
bool moab::SysUtil::little_endian ()
 Check if platform is little-endian.
bool moab::SysUtil::big_endian ()
 Check if platform is big-endian.
void moab::SysUtil::byteswap (void *data, unsigned value_size, size_t num_elem)
 Swap byte order (e.g. change from big-endian to little-endian)
void moab::SysUtil::byteswap2 (void *data, size_t num_elem)
 Alternate byteswap optimized for 2-byte values.
void moab::SysUtil::byteswap4 (void *data, size_t num_elem)
 Alternate byteswap optimized for 4-byte values.
void moab::SysUtil::byteswap8 (void *data, size_t num_elem)
 Alternate byteswap optimized for 8-byte values.
template<typename T >
void moab::SysUtil::byteswap (T *data, size_t num_elem)
 Type-specific byte swap.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines