mconv_decode_buffer(3m17n)
β¨ mconv_decode_buffer β¨
ok so bestie, welcome to the m17n manual (that's section 3m17n, the library pages, iykyk) π and today's main character is mconv_decode_buffer β she's giving decode-a-whole-buffer energy and honestly? she ate.
πΈ NAME πΈ
mconv_decode_buffer β decode a buffer area based on a coding system π¦
π SYNOPSIS π
MText* mconv_decode_buffer (MSymbol name, const unsigned char * buf, int n)
π DESCRIPTION π
Okay so here's the tea β. The mconv_decode_buffer() function decodes n bytes of the buffer area pointed to by buf, and it does it based on the coding system name π§. That's it, that's the whole vibe.
And the way she's so low maintenance β a temporary code converter for decoding gets automatically created and freed for you. No setup, no cleanup, no stress, no cap β¨.
π RETURN VALUE π
- If the operation was successful,
mconv_decode_buffer()returns the resulting M-text π - Otherwise it returns
NULLand assigns an error code to the external variablemerror_codeπ
π ERRORS π
MERROR_IOMERROR_CODING
π¦ SEE ALSO π¦
mconv_decode()mconv_decode_stream()
π COPYRIGHT π
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.
ok that's the whole page bestie, periodt π
β¨ this was Version 1.8.4, Mon Sep 25 2023 of the m17n library docs, mwah π«Άπ
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms