Method LooksLikeCompoundFile
- Namespace
- DocWright.Cryptography
- Assembly
- DocWright.Cryptography.dll
LooksLikeCompoundFile(Stream)
Returns whether the bytes begin with the Compound File Binary magic number. This is the cheap half of the sniff: eight bytes, no parsing.
public static bool LooksLikeCompoundFile(Stream stream)
Parameters
streamStreamA seekable stream. Its position is restored before returning.
Returns
Exceptions
- ArgumentNullException
streamis null.- ArgumentException
streamis not seekable.