nsPkgInt.h File Reference

#include "nscore.h"
Include dependency graph for nsPkgInt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nsPkgInt

Defines

#define PCK16BITS(a, b)   ((PRUint32)(((b) << 16) | (a)))
#define PCK8BITS(a, b, c, d)
#define PCK4BITS(a, b, c, d, e, f, g, h)
#define GETFROMPCK(i, c)   (((((c).data)[(i)>>(c).idxsft])>>(((i)&(c).sftmsk)<<(c).bitsft))&(c).unitmsk)

Typedefs

typedef struct nsPkgInt nsPkgInt

Enumerations

enum  nsIdxSft { eIdxSft4bits = 3, eIdxSft8bits = 2, eIdxSft16bits = 1 }
enum  nsSftMsk { eSftMsk4bits = 7, eSftMsk8bits = 3, eSftMsk16bits = 1 }
enum  nsBitSft { eBitSft4bits = 2, eBitSft8bits = 3, eBitSft16bits = 4 }
enum  nsUnitMsk { eUnitMsk4bits = 0x0000000FL, eUnitMsk8bits = 0x000000FFL, eUnitMsk16bits = 0x0000FFFFL }

Define Documentation

#define GETFROMPCK ( i,
 )     (((((c).data)[(i)>>(c).idxsft])>>(((i)&(c).sftmsk)<<(c).bitsft))&(c).unitmsk)

Definition at line 85 of file nsPkgInt.h.

Referenced by nsCodingStateMachine::NextState().

#define PCK16BITS ( a,
 )     ((PRUint32)(((b) << 16) | (a)))

Definition at line 75 of file nsPkgInt.h.

#define PCK4BITS ( a,
b,
c,
d,
e,
f,
g,
 ) 
Value:
PCK8BITS(  ((PRUint32)(((b) << 4) | (a))), \
                                             ((PRUint32)(((d) << 4) | (c))), \
                                             ((PRUint32)(((f) << 4) | (e))), \
                                             ((PRUint32)(((h) << 4) | (g))) )

Definition at line 80 of file nsPkgInt.h.

#define PCK8BITS ( a,
b,
c,
 ) 
Value:
PCK16BITS( ((PRUint32)(((b) << 8) | (a))),  \
                                             ((PRUint32)(((d) << 8) | (c))))

Definition at line 77 of file nsPkgInt.h.


Typedef Documentation

typedef struct nsPkgInt nsPkgInt

Enumeration Type Documentation

enum nsBitSft
Enumerator:
eBitSft4bits 
eBitSft8bits 
eBitSft16bits 

Definition at line 54 of file nsPkgInt.h.

00054              {
00055   eBitSft4bits  = 2,
00056   eBitSft8bits  = 3,
00057   eBitSft16bits = 4
00058 } nsBitSft; 

enum nsIdxSft
Enumerator:
eIdxSft4bits 
eIdxSft8bits 
eIdxSft16bits 

Definition at line 42 of file nsPkgInt.h.

00042              {
00043   eIdxSft4bits  = 3,
00044   eIdxSft8bits  = 2,
00045   eIdxSft16bits = 1
00046 } nsIdxSft; 

enum nsSftMsk
Enumerator:
eSftMsk4bits 
eSftMsk8bits 
eSftMsk16bits 

Definition at line 48 of file nsPkgInt.h.

00048              {
00049   eSftMsk4bits  = 7,
00050   eSftMsk8bits  = 3,
00051   eSftMsk16bits = 1
00052 } nsSftMsk; 

enum nsUnitMsk
Enumerator:
eUnitMsk4bits 
eUnitMsk8bits 
eUnitMsk16bits 

Definition at line 60 of file nsPkgInt.h.

00060              {
00061   eUnitMsk4bits  = 0x0000000FL,
00062   eUnitMsk8bits  = 0x000000FFL,
00063   eUnitMsk16bits = 0x0000FFFFL
00064 } nsUnitMsk; 

Generated by  doxygen 1.6.2-20100208