Baseer 0.2.0
Baseer is an advanced binary analysis tool designed to provide deep insights into any file.
Loading...
Searching...
No Matches
baseer.c File Reference

Core file operations for Baseer. More...

#include "baseer.h"

Functions

baseer_target_tbaseer_open (char *file_path, baseer_mode_t mode)
 Open a file in specified mode (memory, streaming, or both)
void baseer_close (baseer_target_t *target)
 Close a file target and free associated resources.
void baseer_print (baseer_target_t *target)
 Print a hex dump of the file target.
bool baseer_execute (baseer_target_t *target, baseer_callback_t callback, void *arg)
 Execute a callback on a file target.

Detailed Description

Core file operations for Baseer.

Supports memory and streaming modes, execution of analysis tools,

Function Documentation

◆ baseer_close()

void baseer_close ( baseer_target_t * target)

Close a file target and free associated resources.

Parameters
targetPointer to the file target

◆ baseer_execute()

bool baseer_execute ( baseer_target_t * target,
baseer_callback_t callback,
void * arg )

Execute a callback on a file target.

Parameters
targetPointer to the file target
callbackCallback function
argAdditional argument
Returns
true on success, false on failure

◆ baseer_open()

baseer_target_t * baseer_open ( char * file_path,
baseer_mode_t mode )

Open a file in specified mode (memory, streaming, or both)

Parameters
file_pathPath to the file
modeAccess mode (MEMORY, STREAM, BOTH)
Returns
Pointer to baseer_target_t on success, NULL on failure

◆ baseer_print()

void baseer_print ( baseer_target_t * target)

Print a hex dump of the file target.

Parameters
targetPointer to the file target