BinaryNinja::DataBuffer Class Reference

Public Member Functions

 DataBuffer ()
 
 DataBuffer (size_t len)
 
 DataBuffer (const void *data, size_t len)
 
 DataBuffer (const DataBuffer &buf)
 
 DataBuffer (DataBuffer &&buf)
 
 DataBuffer (BNDataBuffer *buf)
 
 ~DataBuffer ()
 
DataBufferoperator= (const DataBuffer &buf)
 
DataBufferoperator= (DataBuffer &&buf)
 
BNDataBuffer * GetBufferObject () const
 
void * GetData ()
 
const void * GetData () const
 
void * GetDataAt (size_t offset)
 
const void * GetDataAt (size_t offset) const
 
size_t GetLength () const
 
void SetSize (size_t len)
 
void Clear ()
 
void Append (const void *data, size_t len)
 
void Append (const DataBuffer &buf)
 
void AppendByte (uint8_t val)
 
DataBuffer GetSlice (size_t start, size_t len)
 
uint8_t & operator[] (size_t offset)
 
const uint8_t & operator[] (size_t offset) const
 
bool operator== (const DataBuffer &other) const
 
bool operator!= (const DataBuffer &other) const
 
std::string ToEscapedString () const
 
std::string ToBase64 () const
 
bool ZlibCompress (DataBuffer &output) const
 
bool ZlibDecompress (DataBuffer &output) const
 

Static Public Member Functions

static DataBuffer FromEscapedString (const std::string &src)
 
static DataBuffer FromBase64 (const std::string &src)
 

Constructor & Destructor Documentation

◆ DataBuffer() [1/6]

DataBuffer::DataBuffer ( )

◆ DataBuffer() [2/6]

DataBuffer::DataBuffer ( size_t  len)

◆ DataBuffer() [3/6]

DataBuffer::DataBuffer ( const void *  data,
size_t  len 
)

◆ DataBuffer() [4/6]

DataBuffer::DataBuffer ( const DataBuffer buf)

◆ DataBuffer() [5/6]

DataBuffer::DataBuffer ( DataBuffer &&  buf)

◆ DataBuffer() [6/6]

DataBuffer::DataBuffer ( BNDataBuffer *  buf)

◆ ~DataBuffer()

DataBuffer::~DataBuffer ( )

Member Function Documentation

◆ Append() [1/2]

void DataBuffer::Append ( const DataBuffer buf)

◆ Append() [2/2]

void DataBuffer::Append ( const void *  data,
size_t  len 
)

◆ AppendByte()

void DataBuffer::AppendByte ( uint8_t  val)

◆ Clear()

void DataBuffer::Clear ( )

◆ FromBase64()

DataBuffer DataBuffer::FromBase64 ( const std::string &  src)
static

◆ FromEscapedString()

DataBuffer DataBuffer::FromEscapedString ( const std::string &  src)
static

◆ GetBufferObject()

BNDataBuffer * BinaryNinja::DataBuffer::GetBufferObject ( ) const
inline

◆ GetData() [1/2]

void * DataBuffer::GetData ( )

◆ GetData() [2/2]

const void * DataBuffer::GetData ( ) const

◆ GetDataAt() [1/2]

void * DataBuffer::GetDataAt ( size_t  offset)

◆ GetDataAt() [2/2]

const void * DataBuffer::GetDataAt ( size_t  offset) const

◆ GetLength()

size_t DataBuffer::GetLength ( ) const

◆ GetSlice()

DataBuffer DataBuffer::GetSlice ( size_t  start,
size_t  len 
)

◆ operator!=()

bool DataBuffer::operator!= ( const DataBuffer other) const

◆ operator=() [1/2]

DataBuffer & DataBuffer::operator= ( const DataBuffer buf)

◆ operator=() [2/2]

DataBuffer & DataBuffer::operator= ( DataBuffer &&  buf)

◆ operator==()

bool DataBuffer::operator== ( const DataBuffer other) const

◆ operator[]() [1/2]

uint8_t & DataBuffer::operator[] ( size_t  offset)

◆ operator[]() [2/2]

const uint8_t & DataBuffer::operator[] ( size_t  offset) const

◆ SetSize()

void DataBuffer::SetSize ( size_t  len)

◆ ToBase64()

string DataBuffer::ToBase64 ( ) const

◆ ToEscapedString()

string DataBuffer::ToEscapedString ( ) const

◆ ZlibCompress()

bool DataBuffer::ZlibCompress ( DataBuffer output) const

◆ ZlibDecompress()

bool DataBuffer::ZlibDecompress ( DataBuffer output) const

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