alloc method

  1. @override
int alloc(
  1. int size
)
override

Implementation

@override
@pragma('vm:prefer-inline')
int alloc(int size) {
  if (size <= _cachedCapacity) {
    final cached = _cachedAddress;
    if (cached != 0) {
      _cachedAddress = 0;
      _activeAddress = cached;
      _activeCapacity = _cachedCapacity;
      return cached;
    }
  }
  return _allocSlow(size);
}