RecAPI
Public Attributes
_R_IOStreamfuncs Struct Reference

Container structure of the IOStream callback functions. More...

List of all members.

Public Attributes

open_stream_f *  ropen_stream
read_stream_f *  rread_stream
write_stream_f *  rwrite_stream
tell_stream_f *  rtell_stream
seek_stream_f *  rseek_stream
close_stream_f *  rclose_stream
access_stream_f *  raccess_stream
commit_stream_f *  rcommit_stream
trim_stream_f *  rtrim_stream
is_stream_f *  ris_stream

Detailed Description

Container structure of the IOStream callback functions.

streamname is UTF8 in open/access/is_stream

Note:
I/O Stream Handling Module is supported on: Windows.
See kRecSetIOStreamCB

Member Data Documentation

Return 1 if the named stream belongs to the application and it exists. Return -1 if the application stream does not exist. Return 0 if the specified stream does not belong to the application.

Perform the close operation. Return 0 if no error, otherwise return errno.

Preform the commit.

Return 1 if this stream belongs to the application otherwise 0.

Preform the open on the specified stream. Stream names are given on regular CSDK API and passed here. Set stream to NOT_APPLICATION_STREAM when the actual name does not belong to the application. streamname: Name of the stream in the application. mode: create 1, read 2, write 4, readwrite 6 Return 0 if no error, otherwise return errno.

Perform the read operation. Return 0 if no error, otherwise return errno.

Perform the seek operation. Origin: Set 0, Current 1, End 2 If the stream does not have seek capability, use forward read (into memory) technic to emulate the seek what CSDK requires to work properly specificaly in some image inputs. Return 0 if no error, otherwise return errno.

Perform the tell operation. Return 0 if no error, otherwise return errno.

Perform the trim if possible.

Perform the write operation. Return 0 if no error, otherwise return errno.