24#ifndef _R_ENDIANTOOLS_HH_
25#define _R_ENDIANTOOLS_HH_
84 const r_Minterval &srcIterDom,
const void *src,
void *dest,
89 const r_Minterval &srcIterDom,
const void *src,
void *dest);
95 const r_Minterval &destIterDom,
const void *src,
void *dest,
101 const r_Minterval &destIterDom,
const void *src,
void *dest);
This class is the superclass of the types r_Structure_Type and r_Primitive_Type in the representation...
Definition basetype.hh:40
Class to check the endianness of the host machine and to swap the endianness of types and arrays.
Definition endian.hh:45
static void swap_array(const r_Primitive_Type *type, const r_Minterval &srcDom, const r_Minterval &srcIterDom, const void *src, void *dest, r_ULong step)
change the endianness of one type member of an array for identical domains for src and dest; step is ...
static void swap_array(const r_Base_Type *type, const r_Minterval &srcDom, const r_Minterval &srcIterDom, const void *src, void *dest)
change the endianness of the entire tile for identical domains for src and dest
static r_Float swap(r_Float val)
static r_ULong swap(r_ULong val)
static void swap_array(r_Bytes size, const r_Octet *src, r_Octet *dest)
change the endianness of a linear array of size size, type implicit
static void swap_array(r_Bytes size, const r_Char *src, r_Char *dest)
static r_Double swap(r_Double val)
static r_UShort swap(r_UShort val)
static void swap_array(const r_Base_Type *type, const r_Minterval &srcDom, const r_Minterval &srcIterDom, const r_Minterval &destDom, const r_Minterval &destIterDom, const void *src, void *dest)
change the endianness of the entire tile for the generic case
static void swap_array(r_Bytes size, const r_Double *src, r_Double *dest)
static void swap_array(const r_Primitive_Type *type, r_Bytes size, const void *src, void *dest)
change the endianness of a linear array of size size and type type
static void swap_array(r_Bytes size, r_Bytes tsize, const void *src, void *dest)
change the endianness of a linear array of size size with type size tsize
static r_Endianness get_endianness(void)
query host machine's endianness
static void swap_array(r_Bytes size, const r_UShort *src, r_UShort *dest)
static r_Long swap(r_Long val)
static void swap_array(r_Bytes size, const r_ULong *src, r_ULong *dest)
static void swap_array(const r_Primitive_Type *type, const r_Minterval &srcDom, const r_Minterval &srcIterDom, const r_Minterval &destDom, const r_Minterval &destIterDom, const void *src, void *dest, r_ULong step)
change the endianness of one type member of an array for the generic case; step is the increment betw...
static void swap_array(r_Bytes size, const r_Float *src, r_Float *dest)
r_Endianness
endianness identifiers
Definition endian.hh:49
@ r_Endian_Little
Definition endian.hh:51
@ r_Endian_Big
Definition endian.hh:50
static r_Short swap(r_Short val)
swap endianness of atomic types
static void swap_array(r_Bytes size, const r_Short *src, r_Short *dest)
static void swap_array(r_Bytes size, const r_Long *src, r_Long *dest)
The spatial domain of an MDD is represented by an object of class r_Minterval.
Definition minterval.hh:226
This class represents all primitive types in the ODMG conformant representation of the RasDaMan type ...
Definition primitivetype.hh:42
std::ostream & operator<<(std::ostream &s, r_Endian::r_Endianness &e)
Output stream operator for enum of type const r_Minterval.
size_t r_Bytes
number of bytes in an tile or mdd or type.
Definition mddtypes.hh:43
std::uint32_t r_ULong
Definition odmgtypes.hh:38
double r_Double
Definition odmgtypes.hh:40
std::uint16_t r_UShort
Definition odmgtypes.hh:35
float r_Float
Definition odmgtypes.hh:39
std::int8_t r_Octet
Definition odmgtypes.hh:34
std::uint8_t r_Char
Definition odmgtypes.hh:33
std::int32_t r_Long
Definition odmgtypes.hh:37
std::int16_t r_Short
Definition odmgtypes.hh:36