alloc method
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);
}