Example #1
0
 internal MirandaEnumerator(MirandaDB db, BinaryReader reader, int ofsFirst)
 {
     _db            = db;
     _reader        = reader;
     _ofsFirst      = ofsFirst;
     _ofsCurrent    = 0;
     _currentObject = null;
 }
Example #2
0
 public bool MoveNext()
 {
     if (_ofsCurrent == 0)
     {
         if (_ofsFirst == 0)
         {
             return(false);
         }
         _ofsCurrent = _ofsFirst;
     }
     else
     {
         if (_currentObject.NextOffset == 0)
         {
             return(false);
         }
         _ofsCurrent = _currentObject.NextOffset;
     }
     _currentObject = LoadCurrentObject();
     return(true);
 }
 public static void BeginHandleUpdate(IMirandaObject handle)
 {
     VerifyNotNull(handle);
     Monitor.Enter(handle);
 }