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 98 of file QuickTimeFileSink.cpp.


Constructor & Destructor Documentation

Count64::Count64 (  )  [inline]

Definition at line 100 of file QuickTimeFileSink.cpp.

00101     : hi(0), lo(0) {
00102   }


Member Function Documentation

void Count64::operator+= ( unsigned  arg  ) 

Definition at line 1141 of file QuickTimeFileSink.cpp.

References hi, and lo.

01141                                      {
01142   unsigned newLo = lo + arg;
01143   if (newLo < lo) { // lo has overflowed
01144     ++hi;
01145   }
01146   lo = newLo;
01147 }


Field Documentation

u_int32_t Count64::hi

Definition at line 106 of file QuickTimeFileSink.cpp.

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

u_int32_t Count64::lo

Definition at line 106 of file QuickTimeFileSink.cpp.

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


The documentation for this class was generated from the following file:
Generated on Mon Apr 29 13:31:23 2013 for live by  doxygen 1.5.2