| 858 | } |
| 859 | |
| 860 | void destroy() |
| 861 | { |
| 862 | #ifdef SHOW_MEM_EVENTS_VERBOSE |
| 863 | GCLOG(" release block %d : %p\n", mId, this ); |
| 864 | #endif |
| 865 | (*gBlockInfo)[mId] = 0; |
| 866 | gBlockInfoEmptySlots++; |
| 867 | delete this; |
| 868 | } |
| 869 | |
| 870 | bool isEmpty() const { return mUsedRows == 0; } |
| 871 | int getUsedRows() const { return mUsedRows; } |