////////////////////////////////////////////////////////////////////////// util_OffsetToAddr -- given an offset from the end of a block (such as is stored in tRecordIndex) return a pointer to memory inside the block that corresponds to the given offset //////////////////////////////////////////////////////////////////////////
| 53 | // that corresponds to the given offset |
| 54 | /////////////////////////////////////////////////////////////////////////////// |
| 55 | inline int8* util_OffsetToAddr(cBlockFile::Block* pBlock, int offset) |
| 56 | { |
| 57 | return (pBlock->GetData() + (cBlockFile::BLOCK_SIZE - offset)); |
| 58 | } |
| 59 | |
| 60 | |
| 61 | /////////////////////////////////////////////////////////////////////////////// |
no test coverage detected