---
title: getFragmentCount
framework: kernel
role: pseudoSymbol
path: kernel/iorangeallocator/1810456-getfragmentcount
---

# getFragmentCount

Accessor to return the number of free fragments in the range.

## Declaration

```occ
virtual UInt32 getFragmentCount(
 void ); 
```

## Return Value

Return Value Returns the count of free fragments.

## Overview

Overview This method returns a count of free fragments. Each fragment describes a non-contiguous free range - deallocations will merge contiguous fragments together.

## See Also

### Miscellaneous

- [allocate](kernel/iorangeallocator/1810255-allocate.md)
- [allocateRange](kernel/iorangeallocator/1810314-allocaterange.md)
- [deallocate](kernel/iorangeallocator/1810361-deallocate.md)
- [getFragmentCapacity](kernel/iorangeallocator/1810407-getfragmentcapacity.md)
- [getFreeCount](kernel/iorangeallocator/1810490-getfreecount.md)
- [init](kernel/iorangeallocator/1810534-init.md)
- [setFragmentCapacityIncrement](kernel/iorangeallocator/1810575-setfragmentcapacityincrement.md)
- [withRange](kernel/iorangeallocator/1810621-withrange.md)
