alloc method

int alloc (int size, int nextOutOfLineDepth)

Implementation

int alloc(int size, int nextOutOfLineDepth) {
  if (nextOutOfLineDepth > _maxOutOfLineDepth) {
    throw FidlError('Exceeded maxOutOfLineDepth',
        FidlErrorCode.fidlExceededMaxOutOfLineDepth);
  }
  int offset = _extent;
  _claimMemory(_align(size));
  return offset;
}