Trf_TransformBuffer(3)

Trf_TransformBuffer3

Interface to procedures for transformation of character sequences.

Usage

#include <transform.h>

int Trf_TransformBuffer
(

Trf_ControlBlock ctrlBlock,

unsigned char *buf,

int bufLen,

Tcl_Interp *interp,

ClientData clientData
);

Parameters

Trf_ControlBlock ctrlBlock

State of encoder/decoder.

unsigned char *buf

Characters to transform.

int bufLen

Number of characters.

Tcl_Interp *interp

Interpreter for error messages (NULL possible).

ClientData clientData

Arbitrary information, as defined in Trf_TypeDefinition.clientData.

Overview

A procedure of this type is called to encode/decode a complete buffer. 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. The first named is easier to implement, this one should be faster. If both are provided, -> 'Trf_TransformBuffer' takes precedence.

Releases

Unchanged in 9 releases since Debian 5.0 (Lenny).

  1. 5.0–13

From tcl-trf-doc 2.1.4-dfsg3-8 in Debian 13 (Trixie). Parsed by carta from the page's man source.