MCPcopy Create free account
hub / github.com/a2flo/floor / elf_binary

Method elf_binary

src/device/host/elf_binary.cpp:487–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487elf_binary::elf_binary(const uint8_t* binary_data, const size_t binary_size_) : binary_size(binary_size_) {
488 if (binary_size == 0) {
489 return;
490 }
491 binary = std::make_unique<uint8_t[]>(binary_size);
492 memcpy(binary.get(), binary_data, binary_size);
493
494 init_elf();
495}
496
497elf_binary::elf_binary(const std::string& file_name) {
498 auto [bin, bin_size] = file_io::file_to_buffer(file_name);

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected