Trf_QueryMaxRead(3)
β¨ NAME β¨
Trf_QueryMaxRead β the interface for procedures that want to ask a transformation about the max π
(also hi bestie, this one lives in the Library Functions Manual, okurrr)
πΈ SYNOPSIS πΈ
#include <transform.h>
int Trf_QueryMaxRead
(
Trf_ControlBlock ctrlBlock,
ClientData clientData
);
π PARAMETERS π
Trf_ControlBlock ctrlBlockβ the state of the encoder/decoder. like, the whole vibe of where your transform currently is π«ΆClientData clientDataβ arbitrary info, exactly as defined inTrf_TypeDefinition.clientData. whatever you stuffed in there, it comes back to you β¨
π DESCRIPTION π
So basically: this is the number of bytes to read in the next call to the down channel. That's the whole thing. That's the assignment.
The generic trf layer calls this procedure right before it reads data from the channel that sits below the transformation. Which means β and this is the iconic part β a transformation gets to control its own consumption of characters π
An example? 'identity with stop after n characters'. That one transfers at most n characters and then, lowkey, fakes all the higher transformations into believing that EOF occurred π then popping it would reveal the truth. Sneaky. Love that for it.
Pattern matching could be used here too (internet protocols !) π
π₯ SEE ALSO π₯
Trf_Init(3)Trf_SafeInit(3)Trf_IsInitialized(3)Trf_CreateOptions(3)Trf_DeleteOptions(3)Trf_CheckOptions(3)Trf_SetOption(3)Trf_SetObjOption(3)Trf_QueryOptions(3)Trf_SeekQueryOptions(3)Trf_WriteProc(3)Trf_CreateCtrlBlock(3)Trf_DeleteCtrlBlock(3)Trf_TransformCharacter(3)Trf_TransformBuffer(3)Trf_FlushTransformation(3)Trf_ClearCtrlBlock(3)Trf_Register(3)Trf_ConverterOptions(3)Trf_MDStart(3)Trf_MDUpdate(3)Trf_MDUpdateBuf(3)Trf_MDFinal(3)Trf_MDCheck(3)Trf_RegisterMessageDigest(3)Trf_LoadLibrary(3)Trf_XorBuffer(3)Trf_ShiftRegister(3)Trf_FlipRegisterShort(3)Trf_FlipRegisterLong(3)Trf_InitStubs(3)
okay that's the whole page bestie, go read the other thirty of them, they're all linked above, you got this π¦
This one came to you via c2man transform.h, dated 27 August 2002 β like a little time capsule fr fr, and the page itself is Trf_QueryMaxRead(3). periodt π
π¦ where this page comes from
- debian bookworm: tcl-trf-doc 2.1.4-dfsg3-2.1
- debian trixie: tcl-trf-doc 2.1.4-dfsg3-8
- ubuntu jammy: tcl-trf-doc 2.1.4-dfsg3-2.1build1
- ubuntu noble: tcl-trf-doc 2.1.4-dfsg3-3
- ubuntu questing: tcl-trf-doc 2.1.4-dfsg3-8
- ubuntu resolute: tcl-trf-doc 2.1.4-dfsg3-8build1
- ubuntu stonking: tcl-trf-doc 2.1.4-dfsg3-9build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms