Pointwise Plugin SDK
Functions
+ Collaboration diagram for Platform Endian Handling:

Functions

const void * PwuApplyEndianness (PWP_ENDIANNESS endianness, const void *buf, size_t size)
 Apply specified byte order to buf containing size bytes. More...
 
PWP_ENDIANNESS PwuGetOsEndianness (void)
 Query the OS's native endianness. More...
 
#define PWU_ENDIANNESS   PWP_ENDIANNESS
 These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead. More...
 
#define PWU_ENDIAN_ERROR   PWP_ENDIAN_ERROR
 These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead. More...
 
#define PWU_ENDIAN_LITTLE   PWP_ENDIAN_LITTLE
 These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead. More...
 
#define PWU_ENDIAN_BIG   PWP_ENDIAN_BIG
 These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead. More...
 
#define PWU_ENDIAN_NATIVE   PWP_ENDIAN_NATIVE
 These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead. More...
 
#define PWU_ENDIAN_FOREIGN   PWP_ENDIAN_FOREIGN
 These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead. More...
 

Detailed Description

Platform Endianness detection.

Macro Definition Documentation

◆ PWU_ENDIAN_BIG

#define PWU_ENDIAN_BIG   PWP_ENDIAN_BIG

These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead.

Definition at line 302 of file apiPWPUtils.h.

◆ PWU_ENDIAN_ERROR

#define PWU_ENDIAN_ERROR   PWP_ENDIAN_ERROR

These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead.

Definition at line 300 of file apiPWPUtils.h.

◆ PWU_ENDIAN_FOREIGN

#define PWU_ENDIAN_FOREIGN   PWP_ENDIAN_FOREIGN

These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead.

Definition at line 304 of file apiPWPUtils.h.

◆ PWU_ENDIAN_LITTLE

#define PWU_ENDIAN_LITTLE   PWP_ENDIAN_LITTLE

These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead.

Definition at line 301 of file apiPWPUtils.h.

◆ PWU_ENDIAN_NATIVE

#define PWU_ENDIAN_NATIVE   PWP_ENDIAN_NATIVE

These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead.

Definition at line 303 of file apiPWPUtils.h.

◆ PWU_ENDIANNESS

#define PWU_ENDIANNESS   PWP_ENDIANNESS

These PWU_ENDIAN macros are defined for backward compatibility. Usage is deprecated. Use the PWP_ENDIAN types instead.

Definition at line 299 of file apiPWPUtils.h.

Function Documentation

◆ PwuApplyEndianness()

const void* PwuApplyEndianness ( PWP_ENDIANNESS  endianness,
const void *  buf,
size_t  size 
)

Apply specified byte order to buf containing size bytes.

Returns
Pointer to buffer containing the byte-ordered data.

Definition at line 230 of file apiPWPUtils.cxx.

References ENDIAN_MAXSIZE, PWP_ENDIAN_BIG, PWP_ENDIAN_ERROR, PWP_ENDIAN_FOREIGN, PWP_ENDIAN_LITTLE, PWP_ENDIAN_NATIVE, and PwuGetOsEndianness().

Referenced by PwuUnfRecWriteEndianBuf(), unfHdrLenWrite(), PwpFile::writeAt(), and PwpAnchoredFileValueWriter< ValType >::writeUnf().

◆ PwuGetOsEndianness()

PWP_ENDIANNESS PwuGetOsEndianness ( void  )

Query the OS's native endianness.

Returns
One of PWP_ENDIAN_LITTLE or PWP_ENDIAN_BIG

Definition at line 218 of file apiPWPUtils.cxx.

References PWP_ENDIAN_BIG, and PWP_ENDIAN_LITTLE.

Referenced by caeuFileByteOrder(), PwpFile::getOsByteOrder(), CaePlugin< MT >::getOsEndianness(), and PwuApplyEndianness().