[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

setibsize

 
int setibsize(int size)
Return:

>0
Success: the returned value is the new input buffer size in bytes
-1
Failure: buffer size could not be changed
-2
Failure: illegal value for size

This function can be used to change the default size of the input buffers allocated by getvec. It cannot be used while input signals are open (i.e., after invoking isigopen or wfdbinit and before invoking wfdbquit). If size is positive, the default input buffers will be size bytes; if size is zero, the system default buffer size (BUFSIZ) is used. Note that the default buffer size has no effect on reading signals for which an explicit buffer size is given in the header file, i.e., those for which the bsize field of the WFDB_Siginfo structure (see section 3.1 Signal Information Structures) is non-zero. (This function was first introduced in WFDB library version 5.0.)



George B. Moody (george@mit.edu)