XNLSconvread
XNLSconvread |
Purpose
Synopsis
long XNLSconvread(void *vctx,XNLSstream stream,void *buf,unsigned long size);
Arguments
vctx
|
Runtime context for data reader
|
stream
|
Stream open for reading
|
buf
|
Destination buffer for the UTF-8 encoded string
|
size
|
size of
buf
|
Return value
The number of bytes read if successful,
-1 in case of conversion error,
-2 for other errors and
0 when the end of file has been reached.
Further information
The parameter
vctx is passed as the first argument to the
sync function defined when opening the stream.
Related topics