external/blend2d/src/blend2d/blpattern.cpp
// Cannot be static, called by `BLVariant` implementation.
Cannot be static, called by `BLVariant` implementation.
Cannot be static called by ` BLVariant ` implementation .
BLResult blPatternImplDelete(BLPatternImpl* impl_) noexcept {
  BLInternalPatternImpl* impl = blInternalCast(impl_);
  blImageReset(&impl->image);
  uint8_t* implBase = reinterpret_cast<uint8_t*>(impl);
  size_t implSize = sizeof(BLInternalPatternImpl);
  uint32_t implTraits = impl->implTraits;
  uint32_t memPoolData = impl->memPoolData;
  if (implTraits & BL_IMPL_TRAIT_EXTERNAL) {
    implSize += sizeof(BLExternalImplPreface);
    implBase -= sizeof(BLExternalImplPreface);
    blImplDestroyExternal(impl);
  }
  if (implTraits & BL_IMPL_TRAIT_FOREIGN)
    return BL_SUCCESS;
  else
    return blRuntimeFreeImpl(implBase, implSize, memPoolData);
}
BLResult blPatternImplDelete ( BLPatternImpl * impl_ ) noexcept { BLInternalPatternImpl * impl = blInternalCast ( impl_ ) ; blImageReset ( & impl -> image ) ; uint8_t * implBase = reinterpret_cast < uint8_t * > ( impl ) ; size_t implSize = sizeof ( BLInternalPatternImpl ) ; uint32_t implTraits = impl -> implTraits ; uint32_t memPoolData = impl -> memPoolData ; if ( implTraits & BL_IMPL_TRAIT_EXTERNAL ) { implSize += 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 .