User-defined simple-large-object functions
provides four transfer functions that you can redefine to handle a user-defined simple-large-object location.
The loc_open, loc_read, loc_write, and loc_close fields contain pointers to these user-defined location functions. Each of the functions receives the address of the ifx_loc_t structure as its first (or only) parameter. You can use the loc_user_env field to hold data that a user-defined location function needs. In addition, the loc_xfercount and all the fields of the lc_union substructure are available for these functions.