nndeploy C++ API  0.2.0
nndeploy C++ API
Namespaces | Macros | Functions
endian.h File Reference

ref dmlc-core/include/dmlc/endian.h More...

Go to the source code of this file.

Namespaces

 nndeploy
 
 nndeploy::base
 

Macros

#define NNDEPLOY_IO_NO_ENDIAN_SWAP    (NNDEPLOY_LITTLE_ENDIAN == NNDEPLOY_IO_USE_LITTLE_ENDIAN)
 whether serialize using little endian More...
 
#define NNDEPLOY_IO_USE_LITTLE_ENDIAN   1
 Use little endian for binary serialization if this is set to 0, use big endian. More...
 

Functions

void nndeploy::base::byteSwap (void *data, size_t elem_bytes, size_t num_elems)
 A generic inplace byte swapping function. More...
 

Detailed Description

ref dmlc-core/include/dmlc/endian.h

Definition in file endian.h.

Macro Definition Documentation

◆ NNDEPLOY_IO_NO_ENDIAN_SWAP

#define NNDEPLOY_IO_NO_ENDIAN_SWAP    (NNDEPLOY_LITTLE_ENDIAN == NNDEPLOY_IO_USE_LITTLE_ENDIAN)

whether serialize using little endian

Definition at line 47 of file endian.h.

◆ NNDEPLOY_IO_USE_LITTLE_ENDIAN

#define NNDEPLOY_IO_USE_LITTLE_ENDIAN   1

Use little endian for binary serialization if this is set to 0, use big endian.

Definition at line 43 of file endian.h.