Nitpick comment
This commit is contained in:
@@ -52,13 +52,16 @@ class KOReaderDocumentId {
|
|||||||
// string on miss/invalidation.
|
// string on miss/invalidation.
|
||||||
//
|
//
|
||||||
// The fingerprint is derived from the file's modification timestamp. We
|
// The fingerprint is derived from the file's modification timestamp. We
|
||||||
// call `FsFile::getModifyDateTime` to retrieve the packed date/time fields
|
// call `FsFile::getModifyDateTime` to retrieve two 16‑bit packed values
|
||||||
// from the filesystem. These two 16‑bit values are concatenated as
|
// supplied by the filesystem: one for the date and one for the time. These
|
||||||
// eight hex digits (YYYYYYTTTT? actually date and time bits) and used as a
|
// are concatenated and represented as eight hexadecimal digits in the form
|
||||||
// lightweight change signal; any change to the file's mtime will cause the
|
// <date><time> (high 16 bits = packed date, low 16 bits = packed time).
|
||||||
// fingerprint to differ and the cache to be invalidated. Since the full
|
//
|
||||||
// document hash is expensive to compute, using mtime gives us a quick way to
|
// The resulting string serves as a lightweight change signal; any modification
|
||||||
// detect modifications without reading file contents.
|
// to the file's mtime will alter the packed date/time combo and invalidate
|
||||||
|
// the cache entry. Since the full document hash is expensive to compute,
|
||||||
|
// using the packed timestamp gives us a quick way to detect modifications
|
||||||
|
// without reading file contents.
|
||||||
static std::string loadCachedHash(const std::string& cacheFilePath, size_t fileSize,
|
static std::string loadCachedHash(const std::string& cacheFilePath, size_t fileSize,
|
||||||
const std::string& currentFingerprint);
|
const std::string& currentFingerprint);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user