mcDBputSetpos — Write portion of sub-set to database
#include <memcom.h> int mcDBputSetpos(int handle, const char* name, const char* type, mcOff pos, mcSize size, void* data);
mcDBputSetpos
stores a portion of a
dataset to a database. The data are written relative to the
beginning of the set on the database, i.e with an offset of
pos
data elements corresponding to the data type
of the set. Thus, the set must exist before it can be accessed by
mcDBputSetpos
. If completed successfully, the
function returns 0. Otherwise, a negative value indicating the
MemCom error number is returned.
handle
Database handle (input).
name
Dataset name (input).
type
Data type of data to be stored (input).
type
must correspond to the effective
data type of data
.
pos
Position of the first data element on the database to be written. The position is relative to beginning of the dataset on database, the first index being 1.
data
Pointer to the array to be stored (input). Note that this pointer must not be constant, since MemCom may perform conversion in-place. However, the data in the buffer is always reset to the original state before the function returns.
size
Number of data elements to be written (input).