VTK  9.1.20211028
Classes
vtkByteSwap.h File Reference
#include "vtkCommonCoreModule.h"
#include "vtkObject.h"
Include dependency graph for vtkByteSwap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vtkByteSwap
 perform machine dependent byte swapping More...
 

Macros

#define VTK_BYTE_SWAP_DECL(T)
 Type-safe swap signatures to swap for storage in either Little Endian or Big Endian format. More...
 

Macro Definition Documentation

◆ VTK_BYTE_SWAP_DECL

#define VTK_BYTE_SWAP_DECL (   T)
Value:
static void SwapLE(T* p); \
static void SwapBE(T* p); \
static void SwapLERange(T* p, size_t num); \
static void SwapBERange(T* p, size_t num); \
static bool SwapLERangeWrite(const T* p, size_t num, FILE* file); \
static bool SwapBERangeWrite(const T* p, size_t num, FILE* file); \
static void SwapLERangeWrite(const T* p, size_t num, ostream* os); \
static void SwapBERangeWrite(const T* p, size_t num, ostream* os)

Type-safe swap signatures to swap for storage in either Little Endian or Big Endian format.

Swapping is performed according to the true size of the type given.

Definition at line 43 of file vtkByteSwap.h.