MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / fetch

Method fetch

src/jrd/RecordBuffer.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool RecordBuffer::fetch(offset_t position, Record* to_record)
60{
61 const ULONG length = record->getLength();
62 fb_assert(to_record->getLength() == length);
63
64 if (position >= count)
65 return false;
66
67 fb_assert(space.hasData());
68 space->read(position * length, to_record->getData(), length);
69
70 return true;
71}
72
73const Format* RecordBuffer::getFormat() const
74{

Callers

nothing calls this directly

Calls 4

getLengthMethod · 0.45
hasDataMethod · 0.45
readMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected