@@ -194,7 +194,7 @@ namespace xamarin::android::internal {
194
194
runtime_config_data_size = 0uz;
195
195
}
196
196
197
- bool keep_scanning () const noexcept
197
+ static bool keep_scanning () noexcept
198
198
{
199
199
return need_to_scan_more_apks;
200
200
}
@@ -280,9 +280,17 @@ namespace xamarin::android::internal {
280
280
adjusted_info.area = (void *)((const char *)original_info.area + offsetFromPage);
281
281
adjusted_info.size = size;
282
282
283
- log_info (LOG_ASSEMBLY, " mmap_start: %08p mmap_end: %08p mmap_len: % 12u file_start: %08p file_end: %08p file_len: % 12u; apk descriptor: %d; file: %s" ,
284
- original_info.area , reinterpret_cast <int *> (original_info.area ) + original_info.size , original_info.size ,
285
- adjusted_info.area , reinterpret_cast <int *> (adjusted_info.area ) + adjusted_info.size , adjusted_info.size , fd, filename
283
+ log_info (
284
+ LOG_ASSEMBLY,
285
+ " mmap_start: {:<8p}; mmap_end: {:<8p} mmap_len: {:<12} file_start: {:<8p} file_end: {:<8p} file_len: {:<12} apk descriptor: {} file: {}" ,
286
+ original_info.area ,
287
+ pointer_add (original_info.area , original_info.size ),
288
+ original_info.size ,
289
+ adjusted_info.area ,
290
+ pointer_add (adjusted_info.area , adjusted_info.size ),
291
+ adjusted_info.size ,
292
+ fd,
293
+ optional_string (filename)
286
294
);
287
295
288
296
return adjusted_info;
@@ -305,12 +313,12 @@ namespace xamarin::android::internal {
305
313
static void get_assembly_data (XamarinAndroidBundledAssembly const & e, uint8_t *& assembly_data, uint32_t & assembly_data_size) noexcept ;
306
314
static void get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData const & e, uint8_t *& assembly_data, uint32_t & assembly_data_size) noexcept ;
307
315
308
- static void zip_load_entries (int fd, const char *apk_name, monodroid_should_register should_register);
316
+ static void zip_load_entries (int fd, const char *apk_name, monodroid_should_register should_register) noexcept ;
309
317
static void zip_load_individual_assembly_entries (std::span<uint8_t > const & buf, uint32_t num_entries, monodroid_should_register should_register, ZipEntryLoadState &state) noexcept ;
310
318
static void zip_load_assembly_store_entries (std::span<uint8_t > const & buf, uint32_t num_entries, ZipEntryLoadState &state) noexcept ;
311
319
static bool zip_load_entry_common (size_t entry_index, std::span<uint8_t > const & buf, dynamic_local_string<SENSIBLE_PATH_MAX> &entry_name, ZipEntryLoadState &state) noexcept ;
312
- static bool zip_read_cd_info (int fd, uint32_t & cd_offset, uint32_t & cd_size, uint16_t & cd_entries);
313
- static bool zip_adjust_data_offset (int fd, ZipEntryLoadState &state);
320
+ static bool zip_read_cd_info (int fd, uint32_t & cd_offset, uint32_t & cd_size, uint16_t & cd_entries) noexcept ;
321
+ static bool zip_adjust_data_offset (int fd, ZipEntryLoadState &state) noexcept ;
314
322
315
323
template <size_t BufSize>
316
324
static bool zip_extract_cd_info (std::array<uint8_t , BufSize> const & buf, uint32_t & cd_offset, uint32_t & cd_size, uint16_t & cd_entries) noexcept ;
@@ -330,7 +338,7 @@ namespace xamarin::android::internal {
330
338
template <ByteArrayContainer T>
331
339
static bool zip_read_field (T const & buf, size_t index, size_t count, dynamic_local_string<SENSIBLE_PATH_MAX>& characters) noexcept ;
332
340
333
- static bool zip_read_entry_info (std::span<uint8_t > const & buf, dynamic_local_string<SENSIBLE_PATH_MAX>& file_name, ZipEntryLoadState &state);
341
+ static bool zip_read_entry_info (std::span<uint8_t > const & buf, dynamic_local_string<SENSIBLE_PATH_MAX>& file_name, ZipEntryLoadState &state) noexcept ;
334
342
335
343
[[gnu::always_inline]]
336
344
static std::tuple<void *, size_t > get_wrapper_dso_payload_pointer_and_size (md_mmap_info const & map_info, const char *file_name) noexcept
0 commit comments