Class SelfContainedHtmlImages
- Namespace
- MailFathom.Application.EmailContent.Rendering
- Assembly
- MailFathom.Application.dll
Reads how many octets of its own pictures the self-contained markup carries.
public static class SelfContainedHtmlImages
- Inheritance
-
SelfContainedHtmlImages
- Inherited Members
Remarks
The counterpart of MailDocumentImages for the representation that is one string rather than a tree, and it exists for the same reason: a read sequencing several messages can only spend a picture budget across them if each message reports what it actually drew. The two representations draw on one budget, so a call that returns both has to charge both against it.
The arithmetic behind one reference is OctetsBehind(string) rather than a second copy of it, so a picture counted here and the same picture counted in the tree come to the same number.
It reads the string rather than what produced it, because by the time a read charges its budget the markup is all there is to read. So a sender's own words shaped like a reference are counted as one, which spends the budget on something carrying no octets — an over-charge, which shortens a later email of the same call rather than letting one through unbounded, and is the safe direction for a bound to be wrong in. The bound the projection holds *itself* to is the exact one, taken from the pictures it actually inlined rather than from the string it produced.
Methods
- OctetsIn(string)
Reads the octets behind every picture the markup carries in itself.