41 if (
data[i - 1] != 0) {
50 if (!trimmed)
return 0;
65 const BYTE*
getData(
bool trimmed =
false)
const
114 return peconv::validate_ptr(this->
data, this->
data_size, field_bgn, field_size);
120 if (::memcmp(
data, rawData, smaller_size) == 0) {
129 data = peconv::alloc_aligned(size, PAGE_READWRITE);
130 if (
data ==
nullptr) {
158 ::memcpy(this->
data, p1.
data, this->data_size);
size_t getDataSize(bool trimmed=false) const
const BYTE * getData(bool trimmed=false) const
size_t getStartOffset(bool trimmed) const
ByteBuffer(const ByteBuffer &p1)
bool allocBuffer(size_t size)
bool copy(const ByteBuffer &p1)
bool isValidPtr(BYTE *field_bgn, size_t field_size)
virtual ByteBuffer & operator=(const ByteBuffer &p1)
bool isDataContained(const BYTE *rawData, size_t r_size)