| 342 | } |
| 343 | |
| 344 | bool NativeModule::getTLSInfo(void **pTls, |
| 345 | uint32_t *initSize, |
| 346 | uint32_t *totalSize, |
| 347 | uint32_t *align) const |
| 348 | { |
| 349 | bool retVal = false; |
| 350 | do |
| 351 | { |
| 352 | if (pTls == nullptr) |
| 353 | { |
| 354 | LOG_ERR("nullptr error"); |
| 355 | break; |
| 356 | } |
| 357 | |
| 358 | *pTls = m_moduleInfo.pTlsAddr; |
| 359 | *initSize = m_moduleInfo.nTlsInitSize; |
| 360 | *totalSize = m_moduleInfo.nTlsSize; |
| 361 | *align = m_moduleInfo.nTlsAlign; |
| 362 | |
| 363 | retVal = true; |
| 364 | } while (false); |
| 365 | |
| 366 | return retVal; |
| 367 | } |
| 368 | |
| 369 | void *NativeModule::getEntryPoint() const { return m_moduleInfo.pEntryPoint; } |
| 370 | |