MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_code_limit

Method get_code_limit

editor/export/macho.cpp:302–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302uint64_t MachO::get_code_limit() {
303 ERR_FAIL_COND_V_MSG(fa.is_null(), 0, "MachO: File not opened.");
304
305 if (signature_offset == 0) {
306 return fa->get_length() + PAD(fa->get_length(), 16);
307 } else {
308 return get_signature_offset();
309 }
310}
311
312uint64_t MachO::get_signature_size() {
313 ERR_FAIL_COND_V_MSG(fa.is_null(), 0, "MachO: File not opened.");

Callers 1

_codesign_fileMethod · 0.80

Calls 2

is_nullMethod · 0.45
get_lengthMethod · 0.45

Tested by

no test coverage detected