| 400 | } |
| 401 | |
| 402 | static 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 | |
| 415 | void getUniqueFileId(int fd, UCharBuffer& id) |
no test coverage detected