C# Class Reko.Core.EndianImageReader

Inheritance: Reko.Core.ImageReader
Afficher le fichier Open project: smx-smx/reko Class Usage Examples

Méthodes publiques

Méthode Description
Clone ( ) : EndianImageReader
CreateNew ( Array bytes, ulong offset ) : EndianImageReader

Create a new EndianImageReader with the same endianness as this one.

CreateNew ( MemoryArea image, Reko.Core.Address addr ) : EndianImageReader
Read ( PrimitiveType dataType ) : Constant
ReadAt ( long offset, Func action ) : T
ReadCString ( DataType charType, Encoding encoding ) : StringConstant

Reads a NUL-terminated string starting at the current position.

ReadInt16 ( ) : short
ReadInt16 ( uint offset ) : short
ReadInt32 ( ) : int
ReadInt32 ( uint offset ) : int
ReadInt64 ( ) : long
ReadInt64 ( uint offset ) : long
ReadLengthPrefixedString ( PrimitiveType lengthType, PrimitiveType charType, Encoding encoding ) : StringConstant

Read a character string that is preceded by a character count.

ReadNullCharTerminator ( DataType charType ) : bool

ReadUInt16 ( ) : ushort
ReadUInt16 ( uint offset ) : ushort
ReadUInt32 ( ) : uint
ReadUInt32 ( uint offset ) : uint
ReadUInt64 ( ) : ulong
ReadUInt64 ( uint offset ) : ulong
TryPeekUInt32 ( int offset, uint &value ) : bool
TryRead ( PrimitiveType dataType, Constant &c ) : bool
TryReadInt32 ( int &i32 ) : bool
TryReadInt64 ( long &value ) : bool
TryReadUInt16 ( ushort &ui16 ) : bool
TryReadUInt32 ( uint &ui32 ) : bool
TryReadUInt64 ( ulong &ui64 ) : bool

Méthodes protégées

Méthode Description
EndianImageReader ( Array img ) : Reko.Core.Expressions
EndianImageReader ( Array img, ulong off ) : Reko.Core.Expressions
EndianImageReader ( MemoryArea img, Reko.Core.Address addr ) : Reko.Core.Expressions
EndianImageReader ( MemoryArea img, Reko.Core.Address addrBegin, Reko.Core.Address addrEnd ) : Reko.Core.Expressions
EndianImageReader ( MemoryArea img, ulong off ) : Reko.Core.Expressions

Method Details

Clone() public méthode

public Clone ( ) : EndianImageReader
Résultat EndianImageReader

CreateNew() public abstract méthode

Create a new EndianImageReader with the same endianness as this one.
public abstract CreateNew ( Array bytes, ulong offset ) : EndianImageReader
bytes Array
offset ulong
Résultat EndianImageReader

CreateNew() public abstract méthode

public abstract CreateNew ( MemoryArea image, Reko.Core.Address addr ) : EndianImageReader
image MemoryArea
addr Reko.Core.Address
Résultat EndianImageReader

EndianImageReader() protected méthode

protected EndianImageReader ( Array img ) : Reko.Core.Expressions
img Array
Résultat Reko.Core.Expressions

EndianImageReader() protected méthode

protected EndianImageReader ( Array img, ulong off ) : Reko.Core.Expressions
img Array
off ulong
Résultat Reko.Core.Expressions

EndianImageReader() protected méthode

protected EndianImageReader ( MemoryArea img, Reko.Core.Address addr ) : Reko.Core.Expressions
img MemoryArea
addr Reko.Core.Address
Résultat Reko.Core.Expressions

EndianImageReader() protected méthode

protected EndianImageReader ( MemoryArea img, Reko.Core.Address addrBegin, Reko.Core.Address addrEnd ) : Reko.Core.Expressions
img MemoryArea
addrBegin Reko.Core.Address
addrEnd Reko.Core.Address
Résultat Reko.Core.Expressions

EndianImageReader() protected méthode

protected EndianImageReader ( MemoryArea img, ulong off ) : Reko.Core.Expressions
img MemoryArea
off ulong
Résultat Reko.Core.Expressions

Read() public abstract méthode

public abstract Read ( PrimitiveType dataType ) : Constant
dataType PrimitiveType
Résultat Constant

ReadAt() public méthode

public ReadAt ( long offset, Func action ) : T
offset long
action Func
Résultat T

ReadCString() public méthode

Reads a NUL-terminated string starting at the current position.
public ReadCString ( DataType charType, Encoding encoding ) : StringConstant
charType DataType
encoding Encoding
Résultat StringConstant

ReadInt16() public abstract méthode

public abstract ReadInt16 ( ) : short
Résultat short

ReadInt16() public abstract méthode

public abstract ReadInt16 ( uint offset ) : short
offset uint
Résultat short

ReadInt32() public abstract méthode

public abstract ReadInt32 ( ) : int
Résultat int

ReadInt32() public abstract méthode

public abstract ReadInt32 ( uint offset ) : int
offset uint
Résultat int

ReadInt64() public abstract méthode

public abstract ReadInt64 ( ) : long
Résultat long

ReadInt64() public abstract méthode

public abstract ReadInt64 ( uint offset ) : long
offset uint
Résultat long

ReadLengthPrefixedString() public méthode

Read a character string that is preceded by a character count.
public ReadLengthPrefixedString ( PrimitiveType lengthType, PrimitiveType charType, Encoding encoding ) : StringConstant
lengthType PrimitiveType
charType PrimitiveType
encoding Encoding
Résultat StringConstant

ReadNullCharTerminator() public méthode

public ReadNullCharTerminator ( DataType charType ) : bool
charType DataType
Résultat bool

ReadUInt16() public abstract méthode

public abstract ReadUInt16 ( ) : ushort
Résultat ushort

ReadUInt16() public abstract méthode

public abstract ReadUInt16 ( uint offset ) : ushort
offset uint
Résultat ushort

ReadUInt32() public abstract méthode

public abstract ReadUInt32 ( ) : uint
Résultat uint

ReadUInt32() public abstract méthode

public abstract ReadUInt32 ( uint offset ) : uint
offset uint
Résultat uint

ReadUInt64() public abstract méthode

public abstract ReadUInt64 ( ) : ulong
Résultat ulong

ReadUInt64() public abstract méthode

public abstract ReadUInt64 ( uint offset ) : ulong
offset uint
Résultat ulong

TryPeekUInt32() public abstract méthode

public abstract TryPeekUInt32 ( int offset, uint &value ) : bool
offset int
value uint
Résultat bool

TryRead() public abstract méthode

public abstract TryRead ( PrimitiveType dataType, Constant &c ) : bool
dataType PrimitiveType
c Constant
Résultat bool

TryReadInt32() public abstract méthode

public abstract TryReadInt32 ( int &i32 ) : bool
i32 int
Résultat bool

TryReadInt64() public abstract méthode

public abstract TryReadInt64 ( long &value ) : bool
value long
Résultat bool

TryReadUInt16() public abstract méthode

public abstract TryReadUInt16 ( ushort &ui16 ) : bool
ui16 ushort
Résultat bool

TryReadUInt32() public abstract méthode

public abstract TryReadUInt32 ( uint &ui32 ) : bool
ui32 uint
Résultat bool

TryReadUInt64() public abstract méthode

public abstract TryReadUInt64 ( ulong &ui64 ) : bool
ui64 ulong
Résultat bool