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

Function makeUniqueFileId

src/common/os/posix/os_utils.cpp:402–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402static void makeUniqueFileId(const struct STAT& statistics, UCharBuffer& id)
403{
404 const size_t len1 = sizeof(statistics.st_dev);
405 const size_t len2 = sizeof(statistics.st_ino);
406
407 UCHAR* p = id.getBuffer(len1 + len2);
408
409 memcpy(p, &statistics.st_dev, len1);
410 p += len1;
411 memcpy(p, &statistics.st_ino, len2);
412}
413
414
415void getUniqueFileId(int fd, UCharBuffer& id)

Callers 1

getUniqueFileIdFunction · 0.85

Calls 1

getBufferMethod · 0.45

Tested by

no test coverage detected