QDP++
qdp_byteorder.h File Reference

Byte manipulation. More...

#include <cstdio>

Go to the source code of this file.

Namespaces

namespace  QDPUtil

Typedefs

typedef unsigned short int QDPUtil::n_uint16_t
 See qdp_crc32.cc for defs and discussion.
typedef unsigned int QDPUtil::n_uint32_t

Functions

n_uint32_t QDPUtil::crc32 (n_uint32_t crc, const unsigned char *buf, size_t len)
 crc32
n_uint32_t QDPUtil::crc32 (n_uint32_t crc, const char *buf, size_t len)
 crc32
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

Detailed Description

Byte manipulation.

Definition in file qdp_byteorder.h.