Trf_QueryMaxRead(3)

Trf_QueryMaxRead3

Interface for procedures to query a transformation about the max.

Usage

#include <transform.h>

int Trf_QueryMaxRead
(

Trf_ControlBlock ctrlBlock,

ClientData clientData
);

Parameters

Trf_ControlBlock ctrlBlock

State of encoder/decoder.

ClientData clientData

Arbitrary information, as defined in Trf_TypeDefinition.clientData.

Overview

Number of bytes to read in the next call to the down channel. This procedure will be called by the generic trf layer just before reading data from the channel below the transformation. This way a transformation is able to control its consumption of characters. An example would be 'identity with stop after n characters'. This would transfer at most n characters and then basically fake higher transformations into believing that EOF occured. Then popping it would reveal the truth. Pattern matching could be used here too (internet protocols !).

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.