ZFFramework
 
Loading...
Searching...
No Matches
ZFIOBuffer.h File Reference

util to hold and connect ZFInput and ZFOutput More...

#include "ZFObject.h"

Go to the source code of this file.

Classes

class  ZFIOBuffer
 util to hold and connect ZFInput and ZFOutput More...
 

Functions

zfindexZFIOBufferSize (void)
 default value for ZFIOBuffer::bufferSize, 256KB by default
 
void ZFIOBufferSize (zfindex const &v)
 see ZFIOBufferSize
 
ZFInput ZFIOBufferInput (const ZFInput &refInput, const ZFListener &convCallback=(zft_zfnull))
 util to wrap input with io buffer
 
ZFOutput ZFIOBufferOutput (const ZFOutput &refOutput, const ZFListener &convCallback=(zft_zfnull))
 util to wrap output with io buffer
 

Detailed Description

util to hold and connect ZFInput and ZFOutput

Function Documentation

◆ ZFIOBufferInput()

ZFInput ZFIOBufferInput ( const ZFInput & refInput,
const ZFListener & convCallback = (zft_zfnull) )
extern

util to wrap input with io buffer

how it works:

  1. return a wrapped input
  2. when first time reading or checking from the wrapped input, sync refInput to internal cache

the convCallback's sender would be the ZFIOBuffer, param0 would be a v_ZFInput to the refInput

◆ ZFIOBufferOutput()

ZFOutput ZFIOBufferOutput ( const ZFOutput & refOutput,
const ZFListener & convCallback = (zft_zfnull) )
extern

util to wrap output with io buffer

how it works:

  1. return a wrapped output
  2. write to the wrapped output
  3. when done (wrapped output destroyed), sync to refOutput (optionally by convCallback to convert contents)

the convCallback's sender would be the ZFIOBuffer, param0 would be a v_ZFOutput to the refOutput