Ejemplo n.º 1
0
 public void Release()
 {
     m_UseCount--;
     if (m_UseCount <= 0)
     {
         m_Bookmark = null;
         m_OnReleased(this);
     }
 }
Ejemplo n.º 2
0
 public PagesInUse(int index, int offset, int length, EventPagesReleased on_released)
 {
     m_UseCount = 0;
     FirstPage = index;
     PageLength = length;
     m_OnReleased = on_released;
     m_Bookmark = new Bookmark(this, offset);
 }