BinaryNinja::BinaryWriter Class Reference

Public Member Functions

 BinaryWriter (BinaryView *data, BNEndianness endian=LittleEndian)
 
 ~BinaryWriter ()
 
BNEndianness GetEndianness () const
 
void SetEndianness (BNEndianness endian)
 
void Write (const void *src, size_t len)
 
void Write (const DataBuffer &buf)
 
void Write (const std::string &str)
 
void Write8 (uint8_t val)
 
void Write16 (uint16_t val)
 
void Write32 (uint32_t val)
 
void Write64 (uint64_t val)
 
void WriteLE16 (uint16_t val)
 
void WriteLE32 (uint32_t val)
 
void WriteLE64 (uint64_t val)
 
void WriteBE16 (uint16_t val)
 
void WriteBE32 (uint32_t val)
 
void WriteBE64 (uint64_t val)
 
bool TryWrite (const void *src, size_t len)
 
bool TryWrite (const DataBuffer &buf)
 
bool TryWrite (const std::string &str)
 
bool TryWrite8 (uint8_t val)
 
bool TryWrite16 (uint16_t val)
 
bool TryWrite32 (uint32_t val)
 
bool TryWrite64 (uint64_t val)
 
bool TryWriteLE16 (uint16_t val)
 
bool TryWriteLE32 (uint32_t val)
 
bool TryWriteLE64 (uint64_t val)
 
bool TryWriteBE16 (uint16_t val)
 
bool TryWriteBE32 (uint32_t val)
 
bool TryWriteBE64 (uint64_t val)
 
uint64_t GetOffset () const
 
void Seek (uint64_t offset)
 
void SeekRelative (int64_t offset)
 

Constructor & Destructor Documentation

◆ BinaryWriter()

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

◆ ~BinaryWriter()

BinaryWriter::~BinaryWriter ( )

Member Function Documentation

◆ GetEndianness()

BNEndianness BinaryWriter::GetEndianness ( ) const

◆ GetOffset()

uint64_t BinaryWriter::GetOffset ( ) const

◆ Seek()

void BinaryWriter::Seek ( uint64_t  offset)

◆ SeekRelative()

void BinaryWriter::SeekRelative ( int64_t  offset)

◆ SetEndianness()

void BinaryWriter::SetEndianness ( BNEndianness  endian)

◆ TryWrite() [1/3]

bool BinaryWriter::TryWrite ( const DataBuffer buf)

◆ TryWrite() [2/3]

bool BinaryNinja::BinaryWriter::TryWrite ( const std::string &  str)

◆ TryWrite() [3/3]

bool BinaryWriter::TryWrite ( const void *  src,
size_t  len 
)

◆ TryWrite16()

bool BinaryWriter::TryWrite16 ( uint16_t  val)

◆ TryWrite32()

bool BinaryWriter::TryWrite32 ( uint32_t  val)

◆ TryWrite64()

bool BinaryWriter::TryWrite64 ( uint64_t  val)

◆ TryWrite8()

bool BinaryWriter::TryWrite8 ( uint8_t  val)

◆ TryWriteBE16()

bool BinaryWriter::TryWriteBE16 ( uint16_t  val)

◆ TryWriteBE32()

bool BinaryWriter::TryWriteBE32 ( uint32_t  val)

◆ TryWriteBE64()

bool BinaryWriter::TryWriteBE64 ( uint64_t  val)

◆ TryWriteLE16()

bool BinaryWriter::TryWriteLE16 ( uint16_t  val)

◆ TryWriteLE32()

bool BinaryWriter::TryWriteLE32 ( uint32_t  val)

◆ TryWriteLE64()

bool BinaryWriter::TryWriteLE64 ( uint64_t  val)

◆ Write() [1/3]

void BinaryWriter::Write ( const DataBuffer buf)

◆ Write() [2/3]

void BinaryNinja::BinaryWriter::Write ( const std::string &  str)

◆ Write() [3/3]

void BinaryWriter::Write ( const void *  src,
size_t  len 
)

◆ Write16()

void BinaryWriter::Write16 ( uint16_t  val)

◆ Write32()

void BinaryWriter::Write32 ( uint32_t  val)

◆ Write64()

void BinaryWriter::Write64 ( uint64_t  val)

◆ Write8()

void BinaryWriter::Write8 ( uint8_t  val)

◆ WriteBE16()

void BinaryWriter::WriteBE16 ( uint16_t  val)

◆ WriteBE32()

void BinaryWriter::WriteBE32 ( uint32_t  val)

◆ WriteBE64()

void BinaryWriter::WriteBE64 ( uint64_t  val)

◆ WriteLE16()

void BinaryWriter::WriteLE16 ( uint16_t  val)

◆ WriteLE32()

void BinaryWriter::WriteLE32 ( uint32_t  val)

◆ WriteLE64()

void BinaryWriter::WriteLE64 ( uint64_t  val)

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