Expand description
The end-to-end operations front-ends call.
Detection, dispatch, the handler, and — the part that is easy to leave out and expensive to add later — the verification pass. Front-ends should call these rather than reaching for a handler directly, because the checks that make a result trustworthy live here.
Functions§
- inspect_
bytes - Report what metadata
datacontains, without modifying anything. - inspect_
file - Report what metadata the file at
pathcontains. - strip_
bytes - Produce a sanitised copy of
datain memory, verified before it is returned. - strip_
bytes_ to_ file strip_filefor bytes already read, so a front-end that inspects first reads the file once.- strip_
file - Strip
inputand write the result tooutput.