This is Unofficial EPICS BASE Doxygen Site
convert.cpp File Reference
#include <string.h>
#include "dbDefs.h"
#include "osiSock.h"
#include "osiWireFormat.h"
#include "net_convert.h"
#include "iocinf.h"
#include "caProto.h"
#include "caerr.h"
+ Include dependency graph for convert.cpp:

Go to the source code of this file.

Functions

int caNetConvert (unsigned type, const void *pSrc, void *pDest, int hton, arrayElementCount count)
 

Function Documentation

int caNetConvert ( unsigned  type,
const void *  pSrc,
void *  pDest,
int  hton,
arrayElementCount  count 
)

Definition at line 1420 of file convert.cpp.

1422 {
1423 # ifdef EPICS_CONVERSION_REQUIRED
1424  if ( type >= NELEMENTS ( cac_dbr_cvrt ) ) {
1425  return ECA_BADTYPE;
1426  }
1427  ( * cac_dbr_cvrt [ type ] ) ( pSrc, pDest, hton, count );
1428 # else
1429  if ( INVALID_DB_REQ ( type ) ) {
1430  return ECA_BADTYPE;
1431  }
1432  if ( pSrc != pDest ) {
1433  memcpy ( pDest, pSrc, dbr_size_n ( type, count ) );
1434  }
1435 # endif
1436  return ECA_NORMAL;
1437 }
pvd::StructureConstPtr type
#define INVALID_DB_REQ(x)
Definition: db_access.h:115
#define ECA_NORMAL
Definition: caerr.h:77
#define NELEMENTS(A)
Definition: aToIPAddr.c:21
#define dbr_size_n(TYPE, COUNT)
Definition: db_access.h:518
#define ECA_BADTYPE
Definition: caerr.h:91