Vidalia  0.2.21
Macros
codelength.h File Reference

Go to the source code of this file.

Macros

#define DECODELENGTH(n, p)
 
#define CODELENGTH(n, p)
 

Macro Definition Documentation

#define CODELENGTH (   n,
  p 
)
Value:
if(n>=268435456) *(p++) = (n >> 28) | 0x80; \
if(n>=2097152) *(p++) = (n >> 21) | 0x80; \
if(n>=16384) *(p++) = (n >> 14) | 0x80; \
if(n>=128) *(p++) = (n >> 7) | 0x80; \
*(p++) = n & 0x7f;

Definition at line 17 of file codelength.h.

#define DECODELENGTH (   n,
  p 
)
Value:
n = 0; \
do { n = (n << 7) | (*p & 0x7f); } \
while(*(p++)&0x80);

Definition at line 13 of file codelength.h.