Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

idea.h File Reference

#include "snmp_pp/config_snmp_pp.h"

Go to the source code of this file.

Defines

#define GET_32BIT(cp)
#define GET_16BIT(cp)
#define PUT_32BIT(cp, value)
#define PUT_16BIT(cp, value)
#define GET_32BIT_LSB_FIRST(cp)
#define GET_16BIT_LSB_FIRST(cp)
#define PUT_32BIT_LSB_FIRST(cp, value)
#define PUT_16BIT_LSB_FIRST(cp, value)


Define Documentation

#define GET_16BIT cp   ) 
 

Value:

(((unsigned long)(unsigned char)(cp)[0] << 8) | \
                       ((unsigned long)(unsigned char)(cp)[1]))

Definition at line 125 of file idea.h.

#define GET_16BIT_LSB_FIRST cp   ) 
 

Value:

(((unsigned long)(unsigned char)(cp)[0]) | \
  ((unsigned long)(unsigned char)(cp)[1] << 8))

Definition at line 146 of file idea.h.

#define GET_32BIT cp   ) 
 

Value:

(((unsigned long)(unsigned char)(cp)[0] << 24) | \
                       ((unsigned long)(unsigned char)(cp)[1] << 16) | \
                       ((unsigned long)(unsigned char)(cp)[2] << 8) | \
                       ((unsigned long)(unsigned char)(cp)[3]))

Definition at line 120 of file idea.h.

#define GET_32BIT_LSB_FIRST cp   ) 
 

Value:

(((unsigned long)(unsigned char)(cp)[0]) | \
  ((unsigned long)(unsigned char)(cp)[1] << 8) | \
  ((unsigned long)(unsigned char)(cp)[2] << 16) | \
  ((unsigned long)(unsigned char)(cp)[3] << 24))

Definition at line 140 of file idea.h.

#define PUT_16BIT cp,
value   ) 
 

Value:

do { \
  (cp)[0] = (value) >> 8; \
  (cp)[1] = (value); } while (0)

Definition at line 134 of file idea.h.

#define PUT_16BIT_LSB_FIRST cp,
value   ) 
 

Value:

do { \
  (cp)[0] = (value); \
  (cp)[1] = (value) >> 8; } while (0)

Definition at line 156 of file idea.h.

#define PUT_32BIT cp,
value   ) 
 

Value:

do { \
  (cp)[0] = (value) >> 24; \
  (cp)[1] = (value) >> 16; \
  (cp)[2] = (value) >> 8; \
  (cp)[3] = (value); } while (0)

Definition at line 128 of file idea.h.

#define PUT_32BIT_LSB_FIRST cp,
value   ) 
 

Value:

do { \
  (cp)[0] = (value); \
  (cp)[1] = (value) >> 8; \
  (cp)[2] = (value) >> 16; \
  (cp)[3] = (value) >> 24; } while (0)

Definition at line 150 of file idea.h.


Generated on Tue Jan 4 22:42:14 2005 for SNMP++ by doxygen 1.3.2