pub fn new_from_text_bytes(config: Config, text_bytes: &[u8]) -> Self {
        Self {
            config,
            elf_bytes: text_bytes.to_vec(),
            entrypoint: 0,
            text_section_info: SectionInfo {
                vaddr: ebpf::MM_PROGRAM_START,
                offset_range: Range {
                    start: 0,
                    end: text_bytes.len(),
                },
            },
            ro_section_infos: vec![],
            calls: HashMap::default(),
            syscall_registry: SyscallRegistry::default(),
            compiled_program: None,
        }
    }
/// Create from raw text section bytes (list of instructions)
Create from raw text section bytes (list of instructions)
Create from raw text section bytes ( list of instructions )
pub fn new_from_text_bytes(config: Config, text_bytes: &[u8]) -> Self {
        Self {
            config,
            elf_bytes: text_bytes.to_vec(),
            entrypoint: 0,
            text_section_info: SectionInfo {
                vaddr: ebpf::MM_PROGRAM_START,
                offset_range: Range {
                    start: 0,
                    end: text_bytes.len(),
                },
            },
            ro_section_infos: vec![],
            calls: HashMap::default(),
            syscall_registry: SyscallRegistry::default(),
            compiled_program: None,
        }
    }
pub fn new_from_text_bytes ( config : Config , text_bytes : & [ u8 ] ) -> Self { Self { config , elf_bytes : text_bytes . to_vec ( ) , entrypoint : 0 , text_section_info : SectionInfo { vaddr : ebpf :: MM_PROGRAM_START , offset_range : Range { start : 0 , end : text_bytes . len ( ) , } , } , ro_section_infos : vec ! [ ] , calls : HashMap :: default ( ) , syscall_registry : SyscallRegistry :: default ( ) , compiled_program : None , } }
Create from raw text section bytes (list of instructions)
Create from raw text section bytes ( list of instructions )
config
Config
text_bytes
&[u8]