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

Method getRecord

src/jrd/Monitoring.h:296–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 {}
295
296 bool getRecord(SnapshotData::DumpRecord& record)
297 {
298 if (offset < source.getSize())
299 {
300 ULONG length;
301 source.read(offset, &length, sizeof(ULONG));
302 offset += sizeof(ULONG);
303
304 UCHAR* const ptr = buffer.getBuffer(length);
305 source.read(offset, ptr, length);
306 offset += length;
307
308 record.assign(length, ptr);
309 return true;
310 }
311
312 return false;
313 }
314
315 private:
316 TempSpace& source;

Callers

nothing calls this directly

Calls 4

getSizeMethod · 0.45
readMethod · 0.45
getBufferMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected