#include <algorithm>
#include <sstream>
#include <dlrCommon/exception.h>
#include <dlrCommon/types.h>
Go to the source code of this file.
Namespaces | |
| namespace | dlr |
| This namespace comprises all of the symbols defined in the dlr_libs suite of libraries. | |
| namespace | dlr::common |
| This namespace contains classes, functions and typedefs for working with exceptions, reference counting, portable numeric types, checking and switching byte order, extending the standard library, and more. | |
Enumerations | |
| enum | dlr::common::ByteOrder { DLR_BIG_ENDIAN, DLR_LITTLE_ENDIAN } |
| This enum provides a convenient way to represent the various machine-dependent byte orderings. More... | |
Functions | |
| ByteOrder | dlr::common::getByteOrder () |
| This function returns the appropriate byte order for the platform on which it is run. | |
| template<class Type > | |
| void | dlr::common::switchByteOrder (Type *dataPtr, size_t numberOfElements, ByteOrder fromByteOrder, ByteOrder toByteOrder) |
| This function takes a pointer to a C-style array of values and modifies the array in place so that it has a particular byte order. | |
| template<class Type > | |
| void | dlr::common::switchByteOrder (const Type *fromDataPtr, size_t numberOfElements, Type *toDataPtr, ByteOrder fromByteOrder, ByteOrder toByteOrder) |
| This function takes a pointer to a C-style array of values and copies it into another C-style array, swapping bytes if necessary so that the output array has the specified byte order. | |
(C) Copyright 2006-2007 David LaRose, dlr@alumni.carnegiemellon.edu See accompanying LICENSE file for details.
Definition in file byteOrder.h.
1.5.8