Public Member Functions | |
nMessageIDExpander () | |
unsigned long | ExpandMessageID (unsigned short id) |
Private Attributes | |
unsigned long | quarters [4] |
Definition at line 886 of file nNetwork.cpp.
nMessageIDExpander::nMessageIDExpander | ( | ) | [inline] |
Definition at line 890 of file nNetwork.cpp.
00891 : 00892 nMessageIDExpander() 00893 { 00894 for (int i=3; i>=0; --i) quarters[i]=i << 14;
unsigned long nMessageIDExpander::ExpandMessageID | ( | unsigned short | id | ) | [inline] |
Definition at line 896 of file nNetwork.cpp.
00899 { 00900 // the current ID is in this quarter 00901 int thisQuarter = ( id >> 14 ) & 3; 00902 00903 // the following quarter will be this 00904 int nextQuarter = ( thisQuarter + 1 ) & 3; 00905 00906 // make sure the following quarter has a higher upper ID completion than this 00907 quarters[nextQuarter] = quarters[thisQuarter] + ( 1 << 14 ); 00908 00909 // replace high two bits of incoming ID with the counted up ID
unsigned long nMessageIDExpander::quarters[4] [private] |
Definition at line 888 of file nNetwork.cpp.