MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / runtime_windows_file_snapshot_same

Function runtime_windows_file_snapshot_same

src/daemon/runtime.c:708–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708static bool runtime_windows_file_snapshot_same(const BY_HANDLE_FILE_INFORMATION *first_information,
709 const LARGE_INTEGER *first_size,
710 const BY_HANDLE_FILE_INFORMATION *second_information,
711 const LARGE_INTEGER *second_size) {
712 return first_information && first_size && second_information && second_size &&
713 first_information->dwVolumeSerialNumber == second_information->dwVolumeSerialNumber &&
714 first_information->nFileIndexHigh == second_information->nFileIndexHigh &&
715 first_information->nFileIndexLow == second_information->nFileIndexLow &&
716 first_size->QuadPart == second_size->QuadPart &&
717 CompareFileTime(&first_information->ftLastWriteTime,
718 &second_information->ftLastWriteTime) == 0;
719}
720
721#elif defined(__APPLE__)
722

Calls

no outgoing calls

Tested by

no test coverage detected