OpenVAS Libraries
9.0.3
|
Go to the source code of this file.
Macros | |
#define | CAREFUL_ALIGNMENT 1 |
#define | CVAL(buf, pos) ((unsigned)(((const unsigned char *)(buf))[pos])) |
#define | CVAL_NC(buf, pos) (((unsigned char *)(buf))[pos]) /* Non-const version of CVAL */ |
#define | PVAL(buf, pos) (CVAL(buf,pos)) |
#define | SCVAL(buf, pos, val) (CVAL_NC(buf,pos) = (val)) |
#define | SVAL(buf, pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8) |
#define | IVAL(buf, pos) (SVAL(buf,pos)|SVAL(buf,(pos)+2)<<16) |
#define | SSVALX(buf, pos, val) (CVAL_NC(buf,pos)=(unsigned char)((val)&0xFF),CVAL_NC(buf,pos+1)=(unsigned char)((val)>>8)) |
#define | SIVALX(buf, pos, val) (SSVALX(buf,pos,val&0xFFFF),SSVALX(buf,pos+2,val>>16)) |
#define | SVALS(buf, pos) ((int16)SVAL(buf,pos)) |
#define | IVALS(buf, pos) ((int32)IVAL(buf,pos)) |
#define | SSVAL(buf, pos, val) SSVALX((buf),(pos),((uint16)(val))) |
#define | SIVAL(buf, pos, val) SIVALX((buf),(pos),((uint32)(val))) |
#define | SSVALS(buf, pos, val) SSVALX((buf),(pos),((int16)(val))) |
#define | SIVALS(buf, pos, val) SIVALX((buf),(pos),((int32)(val))) |
#define | SREV(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF)) |
#define | IREV(x) ((SREV(x)<<16) | (SREV((x)>>16))) |
#define | RSVAL(buf, pos) SREV(SVAL(buf,pos)) |
#define | RSVALS(buf, pos) SREV(SVALS(buf,pos)) |
#define | RIVAL(buf, pos) IREV(IVAL(buf,pos)) |
#define | RIVALS(buf, pos) IREV(IVALS(buf,pos)) |
#define | RSSVAL(buf, pos, val) SSVAL(buf,pos,SREV(val)) |
#define | RSSVALS(buf, pos, val) SSVALS(buf,pos,SREV(val)) |
#define | RSIVAL(buf, pos, val) SIVAL(buf,pos,IREV(val)) |
#define | RSIVALS(buf, pos, val) SIVALS(buf,pos,IREV(val)) |
#define | ALIGN4(p, base) ((p) + ((4 - (PTR_DIFF((p), (base)) & 3)) & 3)) |
#define | ALIGN2(p, base) ((p) + ((2 - (PTR_DIFF((p), (base)) & 1)) & 1)) |
#define ALIGN2 | ( | p, | |
base | |||
) | ((p) + ((2 - (PTR_DIFF((p), (base)) & 1)) & 1)) |
Definition at line 169 of file byteorder.h.
#define ALIGN4 | ( | p, | |
base | |||
) | ((p) + ((4 - (PTR_DIFF((p), (base)) & 3)) & 3)) |
Definition at line 168 of file byteorder.h.
#define CAREFUL_ALIGNMENT 1 |
Definition at line 105 of file byteorder.h.
#define CVAL | ( | buf, | |
pos | |||
) | ((unsigned)(((const unsigned char *)(buf))[pos])) |
Definition at line 108 of file byteorder.h.
#define CVAL_NC | ( | buf, | |
pos | |||
) | (((unsigned char *)(buf))[pos]) /* Non-const version of CVAL */ |
Definition at line 109 of file byteorder.h.
Definition at line 156 of file byteorder.h.
Definition at line 117 of file byteorder.h.
#define IVALS | ( | buf, | |
pos | |||
) | ((int32)IVAL(buf,pos)) |
Definition at line 121 of file byteorder.h.
#define PVAL | ( | buf, | |
pos | |||
) | (CVAL(buf,pos)) |
Definition at line 110 of file byteorder.h.
Definition at line 160 of file byteorder.h.
Definition at line 161 of file byteorder.h.
Definition at line 164 of file byteorder.h.
Definition at line 165 of file byteorder.h.
Definition at line 162 of file byteorder.h.
Definition at line 163 of file byteorder.h.
Definition at line 158 of file byteorder.h.
Definition at line 159 of file byteorder.h.
Definition at line 111 of file byteorder.h.
Definition at line 123 of file byteorder.h.
Definition at line 125 of file byteorder.h.
Definition at line 119 of file byteorder.h.
#define SREV | ( | x | ) | ((((x)&0xFF)<<8) | (((x)>>8)&0xFF)) |
Definition at line 155 of file byteorder.h.
Definition at line 122 of file byteorder.h.
Definition at line 124 of file byteorder.h.
#define SSVALX | ( | buf, | |
pos, | |||
val | |||
) | (CVAL_NC(buf,pos)=(unsigned char)((val)&0xFF),CVAL_NC(buf,pos+1)=(unsigned char)((val)>>8)) |
Definition at line 118 of file byteorder.h.
Definition at line 116 of file byteorder.h.
Definition at line 120 of file byteorder.h.