mconv_buffer_converter(3m17n)

mconv_buffer_converter3m17n

Usage

MConverter* mconv_buffer_converter (MSymbol name, const unsigned char * buf, int n)

Overview

Create a code converter bound to a buffer. The mconv_buffer_converter() function creates a pointer to a code converter for coding system name. The code converter is bound to buffer area of n bytes pointed to by buf. Subsequent decodings and encodings are done to/from this buffer area.

name can be Mnil. In this case, a coding system associated with the current locale (LC_CTYPE) is used.

Return value

If the operation was successful, mconv_buffer_converter() returns the created code converter. Otherwise it returns NULL and assigns an error code to the external variable merror_code.

Errors

MERROR_SYMBOL, MERROR_CODING

See Also:

mconv_stream_converter()

Releases

8 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 7–12
  3. 13

From m17n-docs 1.8.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.