import { growUint32 } from '../../engine-buffer-utils.js';
export function ensureFormulaBindingDependencyBuildCapacity(args, cellCapacity, dependencyCapacity, symbolicRefCapacity = 0, symbolicRangeCapacity = 0) {
    if (cellCapacity > args.getDependencyBuildSeen().length) {
        args.setDependencyBuildSeen(growUint32(args.getDependencyBuildSeen(), cellCapacity));
    }
    if (cellCapacity > args.getDependencyBuildCells().length) {
        args.setDependencyBuildCells(growUint32(args.getDependencyBuildCells(), cellCapacity));
    }
    if (dependencyCapacity > args.getDependencyBuildEntities().length) {
        args.setDependencyBuildEntities(growUint32(args.getDependencyBuildEntities(), dependencyCapacity));
    }
    if (dependencyCapacity > args.getDependencyBuildRanges().length) {
        args.setDependencyBuildRanges(growUint32(args.getDependencyBuildRanges(), dependencyCapacity));
    }
    if (dependencyCapacity > args.getDependencyBuildNewRanges().length) {
        args.setDependencyBuildNewRanges(growUint32(args.getDependencyBuildNewRanges(), dependencyCapacity));
    }
    if (symbolicRefCapacity > args.getSymbolicRefBindings().length) {
        args.setSymbolicRefBindings(growUint32(args.getSymbolicRefBindings(), symbolicRefCapacity));
    }
    if (symbolicRangeCapacity > args.getSymbolicRangeBindings().length) {
        args.setSymbolicRangeBindings(growUint32(args.getSymbolicRangeBindings(), symbolicRangeCapacity));
    }
}
//# sourceMappingURL=formula-binding-dependency-build-capacity.js.map