mconv_decode_buffer(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 NULL and assigns an error code to the external variable merror_code 😭

πŸ’€ ERRORS πŸ’€

  • MERROR_IO
  • MERROR_CODING

πŸ¦‹ SEE ALSO πŸ¦‹

  • mconv_decode()
  • mconv_decode_stream()

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