QDP++
qdp_byteorder.cc File Reference
#include <iostream>
#include <cstdlib>
#include "qdp_byteorder.h"

Go to the source code of this file.

Namespaces

namespace  QDPUtil

Functions

bool QDPUtil::big_endian ()
 Is the native byte order big endian?
void QDPUtil::byte_swap (void *ptr, size_t size, size_t nmemb)
 Byte-swap an array of data each of size nmemb.
size_t QDPUtil::bfread (void *ptr, size_t size, size_t nmemb, FILE *stream)
 fread on a binary file written in big-endian order
size_t QDPUtil::bfwrite (void *ptr, size_t size, size_t nmemb, FILE *stream)
 fwrite to a binary file in big-endian order