C# Class Iaik.Utils.libbfd.libbfd_native

Contains the native pinvokes for the libbfd
Show file Open project: areiter/InMemoryFuzzing

Public Methods

Method Description
GetFormattedLastError ( ) : string
GetSectionSize ( IntPtr bfdSection ) : System.UInt64

Creates a temporary BfdSection struct and returns the size of the section

GetTargetList ( ) : string[]

Gets a list of all supported targets

Private Methods

Method Description
ByteArrayToUInt64 ( byte data, int offset, int length ) : System.UInt64

Decodes the number encoded in data as a little endian number

bfd_check_format ( IntPtr abfd, FILEFORMAT format ) : int
bfd_check_format_matches ( IntPtr abfd, FILEFORMAT format, IntPtr &matching ) : int
bfd_close ( IntPtr abfd ) : int
bfd_errmsg ( int error ) : IntPtr
bfd_get_error ( ) : int
bfd_get_section_by_name ( IntPtr abfd, string sectionName ) : IntPtr
bfd_get_section_contents ( IntPtr abfd, IntPtr section, byte buffer, System.UInt64 offset, System.UInt64 length ) : bool
bfd_openr ( string filename, string target ) : IntPtr
bfd_set_format ( IntPtr abfd, FILEFORMAT fileformat ) : int
bfd_target_list ( ) : IntPtr

Method Details

GetFormattedLastError() public static method

public static GetFormattedLastError ( ) : string
return string

GetSectionSize() public static method

Creates a temporary BfdSection struct and returns the size of the section
public static GetSectionSize ( IntPtr bfdSection ) : System.UInt64
bfdSection System.IntPtr
return System.UInt64

GetTargetList() public static method

Gets a list of all supported targets
public static GetTargetList ( ) : string[]
return string[]