29 #ifndef __MEM_RUBY_COMMON_DATABLOCK_HH__ 30 #define __MEM_RUBY_COMMON_DATABLOCK_HH__ 61 uint8_t
getByte(
int whichByte)
const;
64 void setByte(
int whichByte, uint8_t data);
65 void setData(
const uint8_t *data,
int offset,
int len);
70 void print(std::ostream& out)
const;
118 return obj1.
equal(obj2);
121 #endif // __MEM_RUBY_COMMON_DATABLOCK_HH__ bool equal(const DataBlock &obj) const
const uint8_t * getData(int offset, int len) const
void copyPartial(const DataBlock &dblk, int offset, int len)
bool operator==(const DataBlock &obj1, const DataBlock &obj2)
void setByte(int whichByte, uint8_t data)
DataBlock & operator=(const DataBlock &obj)
uint8_t getByte(int whichByte) const
void assign(uint8_t *data)
void atomicPartial(const DataBlock &dblk, const WriteMask &mask)
void setData(const uint8_t *data, int offset, int len)
std::ostream & operator<<(std::ostream &out, const DataBlock &obj)
void print(std::ostream &out) const
uint8_t * getDataMod(int offset)