C# 클래스 Reko.Core.EndianImageReader

상속: Reko.Core.ImageReader
파일 보기 프로젝트 열기: smx-smx/reko 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

Clone() 공개 메소드

public Clone ( ) : EndianImageReader
리턴 EndianImageReader

CreateNew() 공개 추상적인 메소드

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

CreateNew() 공개 추상적인 메소드

public abstract CreateNew ( MemoryArea image, Reko.Core.Address addr ) : EndianImageReader
image MemoryArea
addr Reko.Core.Address
리턴 EndianImageReader

EndianImageReader() 보호된 메소드

protected EndianImageReader ( Array img ) : Reko.Core.Expressions
img Array
리턴 Reko.Core.Expressions

EndianImageReader() 보호된 메소드

protected EndianImageReader ( Array img, ulong off ) : Reko.Core.Expressions
img Array
off ulong
리턴 Reko.Core.Expressions

EndianImageReader() 보호된 메소드

protected EndianImageReader ( MemoryArea img, Reko.Core.Address addr ) : Reko.Core.Expressions
img MemoryArea
addr Reko.Core.Address
리턴 Reko.Core.Expressions

EndianImageReader() 보호된 메소드

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
리턴 Reko.Core.Expressions

EndianImageReader() 보호된 메소드

protected EndianImageReader ( MemoryArea img, ulong off ) : Reko.Core.Expressions
img MemoryArea
off ulong
리턴 Reko.Core.Expressions

Read() 공개 추상적인 메소드

public abstract Read ( PrimitiveType dataType ) : Constant
dataType PrimitiveType
리턴 Constant

ReadAt() 공개 메소드

public ReadAt ( long offset, Func action ) : T
offset long
action Func
리턴 T

ReadCString() 공개 메소드

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

ReadInt16() 공개 추상적인 메소드

public abstract ReadInt16 ( ) : short
리턴 short

ReadInt16() 공개 추상적인 메소드

public abstract ReadInt16 ( uint offset ) : short
offset uint
리턴 short

ReadInt32() 공개 추상적인 메소드

public abstract ReadInt32 ( ) : int
리턴 int

ReadInt32() 공개 추상적인 메소드

public abstract ReadInt32 ( uint offset ) : int
offset uint
리턴 int

ReadInt64() 공개 추상적인 메소드

public abstract ReadInt64 ( ) : long
리턴 long

ReadInt64() 공개 추상적인 메소드

public abstract ReadInt64 ( uint offset ) : long
offset uint
리턴 long

ReadLengthPrefixedString() 공개 메소드

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
리턴 StringConstant

ReadNullCharTerminator() 공개 메소드

public ReadNullCharTerminator ( DataType charType ) : bool
charType DataType
리턴 bool

ReadUInt16() 공개 추상적인 메소드

public abstract ReadUInt16 ( ) : ushort
리턴 ushort

ReadUInt16() 공개 추상적인 메소드

public abstract ReadUInt16 ( uint offset ) : ushort
offset uint
리턴 ushort

ReadUInt32() 공개 추상적인 메소드

public abstract ReadUInt32 ( ) : uint
리턴 uint

ReadUInt32() 공개 추상적인 메소드

public abstract ReadUInt32 ( uint offset ) : uint
offset uint
리턴 uint

ReadUInt64() 공개 추상적인 메소드

public abstract ReadUInt64 ( ) : ulong
리턴 ulong

ReadUInt64() 공개 추상적인 메소드

public abstract ReadUInt64 ( uint offset ) : ulong
offset uint
리턴 ulong

TryPeekUInt32() 공개 추상적인 메소드

public abstract TryPeekUInt32 ( int offset, uint &value ) : bool
offset int
value uint
리턴 bool

TryRead() 공개 추상적인 메소드

public abstract TryRead ( PrimitiveType dataType, Constant &c ) : bool
dataType PrimitiveType
c Constant
리턴 bool

TryReadInt32() 공개 추상적인 메소드

public abstract TryReadInt32 ( int &i32 ) : bool
i32 int
리턴 bool

TryReadInt64() 공개 추상적인 메소드

public abstract TryReadInt64 ( long &value ) : bool
value long
리턴 bool

TryReadUInt16() 공개 추상적인 메소드

public abstract TryReadUInt16 ( ushort &ui16 ) : bool
ui16 ushort
리턴 bool

TryReadUInt32() 공개 추상적인 메소드

public abstract TryReadUInt32 ( uint &ui32 ) : bool
ui32 uint
리턴 bool

TryReadUInt64() 공개 추상적인 메소드

public abstract TryReadUInt64 ( ulong &ui64 ) : bool
ui64 ulong
리턴 bool