BinaryNinja::BinaryReader Class Reference

Public Member Functions

 BinaryReader (BinaryView *data, BNEndianness endian=LittleEndian)
 
 ~BinaryReader ()
 
BNEndianness GetEndianness () const
 
void SetEndianness (BNEndianness endian)
 
void Read (void *dest, size_t len)
 
DataBuffer Read (size_t len)
 
template<typename T >
Read ()
 
template<typename T >
std::vector< T > ReadVector (size_t count)
 
std::string ReadString (size_t len)
 
std::string ReadCString (size_t maxLength=-1)
 
uint8_t Read8 ()
 
uint16_t Read16 ()
 
uint32_t Read32 ()
 
uint64_t Read64 ()
 
uint16_t ReadLE16 ()
 
uint32_t ReadLE32 ()
 
uint64_t ReadLE64 ()
 
uint16_t ReadBE16 ()
 
uint32_t ReadBE32 ()
 
uint64_t ReadBE64 ()
 
bool TryRead (void *dest, size_t len)
 
bool TryRead (DataBuffer &dest, size_t len)
 
bool TryReadString (std::string &dest, size_t len)
 
bool TryRead8 (uint8_t &result)
 
bool TryRead16 (uint16_t &result)
 
bool TryRead32 (uint32_t &result)
 
bool TryRead64 (uint64_t &result)
 
bool TryReadLE16 (uint16_t &result)
 
bool TryReadLE32 (uint32_t &result)
 
bool TryReadLE64 (uint64_t &result)
 
bool TryReadBE16 (uint16_t &result)
 
bool TryReadBE32 (uint32_t &result)
 
bool TryReadBE64 (uint64_t &result)
 
uint64_t GetOffset () const
 
void Seek (uint64_t offset)
 
void SeekRelative (int64_t offset)
 
bool IsEndOfFile () const
 
template<typename T >
vector< T > ReadVector (size_t count)
 

Constructor & Destructor Documentation

◆ BinaryReader()

BinaryReader::BinaryReader ( BinaryView data,
BNEndianness  endian = LittleEndian 
)

◆ ~BinaryReader()

BinaryReader::~BinaryReader ( )

Member Function Documentation

◆ GetEndianness()

BNEndianness BinaryReader::GetEndianness ( ) const

◆ GetOffset()

uint64_t BinaryReader::GetOffset ( ) const

◆ IsEndOfFile()

bool BinaryReader::IsEndOfFile ( ) const

◆ Read() [1/3]

template<typename T >
T BinaryReader::Read

◆ Read() [2/3]

DataBuffer BinaryReader::Read ( size_t  len)

◆ Read() [3/3]

void BinaryReader::Read ( void *  dest,
size_t  len 
)

◆ Read16()

uint16_t BinaryReader::Read16 ( )

◆ Read32()

uint32_t BinaryReader::Read32 ( )

◆ Read64()

uint64_t BinaryReader::Read64 ( )

◆ Read8()

uint8_t BinaryReader::Read8 ( )

◆ ReadBE16()

uint16_t BinaryReader::ReadBE16 ( )

◆ ReadBE32()

uint32_t BinaryReader::ReadBE32 ( )

◆ ReadBE64()

uint64_t BinaryReader::ReadBE64 ( )

◆ ReadCString()

string BinaryReader::ReadCString ( size_t  maxLength = -1)

◆ ReadLE16()

uint16_t BinaryReader::ReadLE16 ( )

◆ ReadLE32()

uint32_t BinaryReader::ReadLE32 ( )

◆ ReadLE64()

uint64_t BinaryReader::ReadLE64 ( )

◆ ReadString()

string BinaryReader::ReadString ( size_t  len)

◆ ReadVector() [1/2]

template<typename T >
std::vector< T > BinaryNinja::BinaryReader::ReadVector ( size_t  count)

◆ ReadVector() [2/2]

template<typename T >
vector< T > BinaryNinja::BinaryReader::ReadVector ( size_t  count)

◆ Seek()

void BinaryReader::Seek ( uint64_t  offset)

◆ SeekRelative()

void BinaryReader::SeekRelative ( int64_t  offset)

◆ SetEndianness()

void BinaryReader::SetEndianness ( BNEndianness  endian)

◆ TryRead() [1/2]

bool BinaryReader::TryRead ( DataBuffer dest,
size_t  len 
)

◆ TryRead() [2/2]

bool BinaryReader::TryRead ( void *  dest,
size_t  len 
)

◆ TryRead16()

bool BinaryReader::TryRead16 ( uint16_t &  result)

◆ TryRead32()

bool BinaryReader::TryRead32 ( uint32_t &  result)

◆ TryRead64()

bool BinaryReader::TryRead64 ( uint64_t &  result)

◆ TryRead8()

bool BinaryReader::TryRead8 ( uint8_t &  result)

◆ TryReadBE16()

bool BinaryReader::TryReadBE16 ( uint16_t &  result)

◆ TryReadBE32()

bool BinaryReader::TryReadBE32 ( uint32_t &  result)

◆ TryReadBE64()

bool BinaryReader::TryReadBE64 ( uint64_t &  result)

◆ TryReadLE16()

bool BinaryReader::TryReadLE16 ( uint16_t &  result)

◆ TryReadLE32()

bool BinaryReader::TryReadLE32 ( uint32_t &  result)

◆ TryReadLE64()

bool BinaryReader::TryReadLE64 ( uint64_t &  result)

◆ TryReadString()

bool BinaryReader::TryReadString ( std::string &  dest,
size_t  len 
)

The documentation for this class was generated from the following files: