db4o

ISystemInfo.FreespaceSize Method 

returns the freespace size in the database in bytes.

long FreespaceSize();

Return Value

the freespace size in the database in bytes.

Remarks

returns the freespace size in the database in bytes.

When db4o stores modified objects, it allocates a new slot for it. During commit the old slot is freed. Free slots are collected in the freespace manager, so they can be reused for other objects.

This method returns a sum of the size of all free slots in the database file.

To reclaim freespace run defragment.

See Also

ISystemInfo Interface | Db4objects.Db4o.Ext Namespace