C# Class Iaik.Utils.libbfd.BfdStream

Wraps a readonly Stream around a bfd file and its sections
Inheritance: Stream
Show file Open project: areiter/InMemoryFuzzing

Public Methods

Method Description
CreateFromCoreFile ( string filename, FileAccess access, string target ) : BfdStream

Creates a BfdStream from a given Core dump file

CreateFromCoreFileSelectSection ( string filename, FileAccess access, string target, string sectionName ) : BfdStream

Creates a BfdStream from a given Core dump file and selects the specified section

Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SelectSection ( string name ) : void

Selects a section in the bfd file

SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AssertSection ( ) : void
BfdStream ( IntPtr abfd ) : System

Method Details

CreateFromCoreFile() public static method

Creates a BfdStream from a given Core dump file
public static CreateFromCoreFile ( string filename, FileAccess access, string target ) : BfdStream
filename string Path to the cire file
access FileAccess
target string
return BfdStream

CreateFromCoreFileSelectSection() public static method

Creates a BfdStream from a given Core dump file and selects the specified section
public static CreateFromCoreFileSelectSection ( string filename, FileAccess access, string target, string sectionName ) : BfdStream
filename string Path to the cire file
access FileAccess
target string
sectionName string
return BfdStream

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SelectSection() public method

Selects a section in the bfd file
public SelectSection ( string name ) : void
name string /// A ///
return void

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void