external/blend2d/src/blend2d/blregion.cpp
// Cannot be static, called by `BLVariant` implementation.
Cannot be static, called by `BLVariant` implementation.
Cannot be static called by ` BLVariant ` implementation .
BLResult blRegionImplDelete(BLRegionImpl* impl_) noexcept {
  BLInternalRegionImpl* impl = blInternalCast(impl_);
  uint8_t* implBase = reinterpret_cast<uint8_t*>(impl);
  size_t implSize = blRegionImplSizeOf(impl->capacity);
  uint32_t implTraits = impl->implTraits;
  uint32_t memPoolData = impl->memPoolData;
  if (implTraits & BL_IMPL_TRAIT_EXTERNAL) {
    implSize = blRegionImplSizeOf() + sizeof(BLExternalImplPreface);
    implBase -= sizeof(BLExternalImplPreface);
    blImplDestroyExternal(impl);
  }
  if (implTraits & BL_IMPL_TRAIT_FOREIGN)
    return BL_SUCCESS;
  else
    return blRuntimeFreeImpl(implBase, implSize, memPoolData);
}
BLResult blRegionImplDelete ( BLRegionImpl * impl_ ) noexcept { BLInternalRegionImpl * impl = blInternalCast ( impl_ ) ; uint8_t * implBase = reinterpret_cast < uint8_t * > ( impl ) ; size_t implSize = blRegionImplSizeOf ( impl -> capacity ) ; uint32_t implTraits = impl -> implTraits ; uint32_t memPoolData = impl -> memPoolData ; if ( implTraits & BL_IMPL_TRAIT_EXTERNAL ) { implSize = blRegionImplSizeOf ( ) + sizeof ( BLExternalImplPreface ) ; implBase -= sizeof ( BLExternalImplPreface ) ; blImplDestroyExternal ( impl ) ; } if ( implTraits & BL_IMPL_TRAIT_FOREIGN ) return BL_SUCCESS ; else return blRuntimeFreeImpl ( implBase , implSize , memPoolData ) ; }
Cannot be static, called by `BLVariant` implementation.
Cannot be static called by ` BLVariant ` implementation .