NAME

Trf_TransformCharacter - Interface to procedures for transformation of a single character.

SYNOPSIS

#include <generic/transform.h>

int Trf_TransformCharacter
(
	Trf_ControlBlock ctrlBlock,
	unsigned int character,
	Tcl_Interp *interp,
	ClientData clientData
);

PARAMETERS

Trf_ControlBlock ctrlBlock
State of encoder/decoder.
unsigned int character
Character to transform.
Tcl_Interp *interp
Interpreter for error messages (NULL possible).
ClientData clientData
Arbitrary information, as defined in Trf_TypeDefinition.clientData.

DESCRIPTION

A procedure of this type is called to encode/decode a single character. Return value is a standard tcl error code. In case of failure and interp not NULL an error message should be left in the result area of the specified interpreter. Only one of 'Trf_TransformCharacter' and 'Trf_TransformBuffer' must be provided. This one is easier to implement, the second one should be faster. If both are provided, -> 'Trf_TransformBuffer' takes precedence.

SEE ALSO

Trf_Init , Trf_SafeInit , Trf_IsInitialized , Trf_CreateOptions , Trf_DeleteOptions , Trf_CheckOptions , Trf_SetOption , Trf_SetObjOption , Trf_QueryOptions , Trf_SeekQueryOptions , Trf_WriteProc , Trf_CreateCtrlBlock , Trf_DeleteCtrlBlock , Trf_TransformBuffer , Trf_FlushTransformation , Trf_ClearCtrlBlock , Trf_QueryMaxRead , Trf_Register , Trf_ConverterOptions , Trf_MDStart , Trf_MDUpdate , Trf_MDUpdateBuf , Trf_MDFinal , Trf_MDCheck , Trf_RegisterMessageDigest , Trf_LoadLibrary , Trf_XorBuffer , Trf_ShiftRegister , Trf_FlipRegisterShort , Trf_FlipRegisterLong , Trf_InitStubs