SER_DISK = (1 << 1),
SER_GETHASH = (1 << 2),
- // modifiers
- SER_SKIPSIG = (1 << 16),
- SER_BLOCKHEADERONLY = (1 << 17)
+ // modifiers
+ SER_SKIPSIG = (1 << 16),
+ SER_BLOCKHEADERONLY = (1 << 17)
};
inline unsigned int GetSizeOfVarInt(I n)
{
int nRet = 0;
- while(true) {
+ for ( ; ; ) {
nRet++;
if (n <= 0x7F)
break;
{
unsigned char tmp[(sizeof(n)*8+6)/7];
int len=0;
- while(true) {
+ for ( ; ; ) {
tmp[len] = (n & 0x7F) | (len ? 0x80 : 0x00);
if (n <= 0x7F)
break;
I ReadVarInt(Stream& is)
{
I n = 0;
- while(true) {
+ for ( ; ; ) {
unsigned char chData;
READDATA(is, chData);
n = (n << 7) | (chData & 0x7F);