blob: f2c6e67a9fc16622ba1a8ebff717e54598ac874b [file] [log] [blame] [view]
# alloc method
int alloc
(int size, int nextOutOfLineDepth)
## Implementation
```dart
int alloc(int size, int nextOutOfLineDepth) {
if (nextOutOfLineDepth > _maxOutOfLineDepth) {
throw FidlError('Exceeded maxOutOfLineDepth',
FidlErrorCode.fidlExceededMaxOutOfLineDepth);
}
int offset = _extent;
_claimBytes(align(size));
return offset;
}
```