Stream encoding conversion
These functions are designed for the transcoding of text streams. The creation of a stream with XNLSopenconv requires an additional function used to read (or write for an output stream) a block of data: it is called whenever the internal buffer of the transcoder is empty (or full if writing). When the stream is open for reading the user calls iteratively the reader routine XNLSconvread to get the data of the stream encoded in UTF-8. If the stream is open for writing the data sent to XNLSconvwrite is expected to be encoded in UTF-8 and it is transcoded to the encoding specified at the creation of the stream.
XNLScloseconv |
Close a transcoder stream.
|
XNLSconvread |
Read from an input transcoder stream.
|
XNLSconvwrite |
Write to an output transcoder stream.
|
XNLSgetenc |
Get the encoding ID and status of a transcoder stream.
|
XNLSgetfd |
Get reader/writer file descriptor of a transcoder stream.
|
XNLSgetoffset |
Get the current offset in a transcoder stream.
|
XNLSopenconv |
Open a transcoder stream.
|