DataBlock.hh (6347:a532849ca78f) | DataBlock.hh (6351:31d19bdd9d85) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 44 unchanged lines hidden (view full) --- 53 void assign(uint8* data); 54 55 void clear(); 56 uint8 getByte(int whichByte) const; 57 const uint8* getData(int offset, int len) const; 58 void setByte(int whichByte, uint8 data); 59 const uint8* getBlock() const; 60 uint8* copyData(uint8* dest, int offset, int size) const; | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 44 unchanged lines hidden (view full) --- 53 void assign(uint8* data); 54 55 void clear(); 56 uint8 getByte(int whichByte) const; 57 const uint8* getData(int offset, int len) const; 58 void setByte(int whichByte, uint8 data); 59 const uint8* getBlock() const; 60 uint8* copyData(uint8* dest, int offset, int size) const; |
61 void setBlock(uint8* data) { setData(data, 0, System::getBlockSizeBytes()); } | 61 void setBlock(uint8* data) { setData(data, 0, RubySystem::getBlockSizeBytes()); } |
62 void setData(uint8* data, int offset, int len); 63 void copyPartial(const DataBlock & dblk, int offset, int len); 64 bool equal(const DataBlock& obj) const; 65 void print(ostream& out) const; 66 67private: 68 void alloc(); 69 // Data Members (m_ prefix) --- 115 unchanged lines hidden --- | 62 void setData(uint8* data, int offset, int len); 63 void copyPartial(const DataBlock & dblk, int offset, int len); 64 bool equal(const DataBlock& obj) const; 65 void print(ostream& out) const; 66 67private: 68 void alloc(); 69 // Data Members (m_ prefix) --- 115 unchanged lines hidden --- |