Count64 Class Reference


Public Member Functions

 Count64 ()
void operator+= (unsigned arg)

Data Fields

unsigned hi
unsigned lo

Detailed Description

Definition at line 88 of file QuickTimeFileSink.cpp.


Constructor & Destructor Documentation

Count64::Count64 (  )  [inline]

Definition at line 90 of file QuickTimeFileSink.cpp.

References hi, and lo.

00090 { hi = lo = 0; }


Member Function Documentation

void Count64::operator+= ( unsigned  arg  ) 

Definition at line 1082 of file QuickTimeFileSink.cpp.

References hi, and lo.

01082                                      {
01083   unsigned newLo = lo + arg;
01084   if (newLo < lo) { // lo has overflowed
01085     ++hi;
01086   }
01087   lo = newLo;
01088 }


Field Documentation

unsigned Count64::hi

Definition at line 94 of file QuickTimeFileSink.cpp.

Referenced by QuickTimeFileSink::addAtom_hdlr2(), Count64(), and operator+=().

unsigned Count64::lo

Definition at line 94 of file QuickTimeFileSink.cpp.

Referenced by QuickTimeFileSink::addAtom_hdlr2(), Count64(), and operator+=().


The documentation for this class was generated from the following file:
Generated on Tue Oct 7 15:39:37 2008 for live by  doxygen 1.5.2