Table of Contents

Method FindIntegrityDefect

Namespace
MailFathom.Application.EmailContent.Storage
Assembly
MailFathom.Application.dll

FindIntegrityDefect()

Finds the defect that makes the stored payload differ from what was recorded for it.

public EmailContentDefect? FindIntegrityDefect()

Returns

EmailContentDefect?

The defect, or null when the payload is exactly what was written.

Remarks

The length is checked before the digest because it is the cheaper answer to the same question and because it names the more likely fault precisely: a truncated payload is what a partial write leaves behind, and reporting it as a hash mismatch would describe a repaired copy as a corrupted one.