TECClearSnifferContextInfo
Resets a sniffer object to its initial settings so youcan reuse it.
Declaration
OSStatus TECClearSnifferContextInfo(TECSnifferObjectRef encodingSniffer);Parameters
- encodingSniffer:
A pointer to the sniffer object you want to reset.
Return Value
A resultcode. See Result Codes.
Discussion
Sniffers maintain state information about the input encodingbuffer and the number of errors and features found for each encoding;this information allows a caller to progressively sniff an inputbuffer in sequential chunks. Before sniffing a buffer that containscompletely new information you must clear any state informationby calling TECClearSnifferContextInfo.