---
title: initWithSpecification
framework: kernel
role: pseudoSymbol
path: kernel/iobigmemorycursor/1811657-initwithspecification
---

# initWithSpecification

Primary initializer for the IOBigMemoryCursor class.

## Declaration

```occ
virtual bool initWithSpecification(
 IOPhysicalLength maxSegmentSize, 
 IOPhysicalLength maxTransferSize, 
 IOPhysicalLength alignment = 1); 
```

## Parameters

- `maxSegmentSize`: Maximum allowable size for one segment. Defaults to 0.
- `maxTransferSize`: Maximum size of an entire transfer. Defaults to 0 indicating no maximum.
- `alignment`: Alignment restrictions on output physical addresses. Not currently implemented. Defaults to single byte alignment.

## Return Value

Return Value Returns true if the inherited classes and this instance initialize successfully.

## See Also

### Miscellaneous

- [getPhysicalSegments](kernel/iobigmemorycursor/1811632-getphysicalsegments.md)
- [outputSegment](kernel/iobigmemorycursor/1811675-outputsegment.md)
- [withSpecification](kernel/iobigmemorycursor/1811699-withspecification.md)
