common callback defines More...
#include "ZFIOCallback_fwd.h"Go to the source code of this file.
Classes | |
| class | ZFInput |
| general input callback More... | |
Macros | |
| #define | ZFCallbackSerializeType_ZFInputDummy |
| see ZFCALLBACK_SERIALIZE_TYPE_DEFINE | |
| #define | ZFCallbackSerializeType_ZFInputForInputInRange |
| see ZFCALLBACK_SERIALIZE_TYPE_DEFINE | |
| #define | ZFSerializableKeyword_ZFInputForInputInRange_input |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFInputForInputInRange_start |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFInputForInputInRange_count |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFInputForInputInRange_autoRestorePos |
| keyword for serialize | |
| #define | ZFCallbackSerializeType_ZFInputForBuffer |
| see ZFCALLBACK_SERIALIZE_TYPE_DEFINE | |
| #define | ZFSerializableKeyword_ZFInputForBuffer_buf |
| keyword for serialize | |
Functions | |
| ZFInput | ZFInputDummy (void) |
| a dummy input that always read zero byte with success state | |
| ZFInput | ZFInputForInputInRange (const ZFInput &inputCallback, zfindex start=0, zfindex count=((zfindex) -1), zfbool autoRestorePos=_ZFT_t_zftrue) |
| create a intput callback from another input callback, specified in range | |
| ZFInput | ZFInputForBufferUnsafe (const void *src, zfindex count=((zfindex) -1), zfbool serializable=_ZFT_t_zffalse) |
| create a intput callback input from a const void *, you must ensure the buffer is alive during the callback's life time | |
| ZFInput | ZFInputForBuffer (const void *src, zfindex count=((zfindex) -1), zfbool serializable=_ZFT_t_zffalse) |
| see ZFInputForBufferUnsafe, copy the contents and auto free it | |
| ZFInput | ZFInputForString (const zfstring &src, zfbool serializable=_ZFT_t_zffalse) |
| create a input callback from string | |
common callback defines
| #define ZFCallbackSerializeType_ZFInputDummy |
see ZFCALLBACK_SERIALIZE_TYPE_DEFINE
serializable data:
| #define ZFCallbackSerializeType_ZFInputForInputInRange |
see ZFCALLBACK_SERIALIZE_TYPE_DEFINE
serializable data:
| #define ZFCallbackSerializeType_ZFInputForBuffer |
see ZFCALLBACK_SERIALIZE_TYPE_DEFINE
serializable data:
|
extern |
create a intput callback from another input callback, specified in range
params:
seeking the result input callback would ensure in range [start, start + count]
src must support seek, otherwise a null callback would be returned
|
extern |
create a intput callback input from a const void *, you must ensure the buffer is alive during the callback's life time
params: