Count64 Class Reference


Public Member Functions

 Count64 ()
void operator+= (unsigned arg)

Data Fields

u_int32_t hi
u_int32_t lo

Detailed Description

Definition at line 100 of file QuickTimeFileSink.cpp.


Constructor & Destructor Documentation

Count64::Count64 (  )  [inline]

Definition at line 102 of file QuickTimeFileSink.cpp.

00103     : hi(0), lo(0) {
00104   }


Member Function Documentation

void Count64::operator+= ( unsigned  arg  ) 

Definition at line 1132 of file QuickTimeFileSink.cpp.

References hi, and lo.

01132                                      {
01133   unsigned newLo = lo + arg;
01134   if (newLo < lo) { // lo has overflowed
01135     ++hi;
01136   }
01137   lo = newLo;
01138 }


Field Documentation

u_int32_t Count64::hi

Definition at line 108 of file QuickTimeFileSink.cpp.

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

u_int32_t Count64::lo

Definition at line 108 of file QuickTimeFileSink.cpp.

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


The documentation for this class was generated from the following file:
Generated on Thu May 17 07:15:10 2012 for live by  doxygen 1.5.2