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

Method elf_binary

compute/host/elf_binary.cpp:480–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480elf_binary::elf_binary(const uint8_t* binary_data, const size_t binary_size_) : binary_size(binary_size_) {
481 if (binary_size == 0) {
482 return;
483 }
484 binary = make_unique<uint8_t[]>(binary_size);
485 memcpy(binary.get(), binary_data, binary_size);
486
487 init_elf();
488}
489
490elf_binary::elf_binary(const string& file_name) {
491 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