MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / GetDataForReading

Method GetDataForReading

src/db/blockrecordfile.cpp:227–236  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// GetDataForReading //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

225// GetDataForReading
226///////////////////////////////////////////////////////////////////////////////
227int8* cBlockRecordFile::GetDataForReading(cBlockRecordFile::tAddr dataAddr, int32& dataSize) //throw (eArchive)
228{
229 ASSERT(mbOpen);
230 ASSERT(IsValidAddr(dataAddr));
231#ifdef _BLOCKFILE_DEBUG
232 AssertValid();
233#endif
234
235 return (mvBlocks[dataAddr.mBlockNum].GetDataForReading(dataAddr.mIndex, dataSize));
236}
237
238///////////////////////////////////////////////////////////////////////////////
239// GetDataForWriting

Callers 2

util_ReadObjectFunction · 0.45
GetDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected