Carbon


TECClearSnifferContextInfo

Header: TextEncodingConverter.h Carbon status: Supported

Resets a sniffer object to its initial settings so you can reuse it.

OSStatus TECClearSnifferContextInfo (
    TECSnifferObjectRef encodingSniffer
);
Parameter descriptions
encodingSniffer

A pointer to the sniffer object you want to reset.

function result

A result code.

DISCUSSION

Sniffers maintain state information about the input encoding buffer and the number of errors and features found for each encoding; this information allows a caller to progressively sniff an input buffer in sequential chunks. Before sniffing a buffer that contains completely new information you must clear any state information by calling TECClearSnifferContextInfo.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)