m17nObject(3m17n)

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

πŸ’– m17nObject β€” managed objects, but make it reference-counted ✨

okay bestie, this is a page from the m17n Library manual (the 3m17n one, iykyk) and it's literally all about Objects managed by the reference count. sit down, hydrate, let's go 🫢


🌸 NAME 🌸

m17nObject_-_Managed_Ob β€” objects managed by the reference count. that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

πŸŽ€ Data Structures

  • struct M17NObjectHead β€” the first member of a managed object. yes queen, it goes first, it's the main character πŸ‘‘

πŸ¦‹ Functions

  • void * m17n_object (int size, void(*freer)(void *))
  • int m17n_object_ref (void *object) β€” increment the reference count of a managed object πŸ“ˆ
  • int m17n_object_unref (void *object) β€” decrement the reference count of a managed object πŸ“‰

πŸ’œ Detailed Description πŸ’œ

Objects managed by the reference count

Managed objects are objects managed by the reference count. that's the definition, no notes βœ‹

There are some types of m17n objects that are managed by their reference count. Those objects are called managed objects. When created, the reference count of a managed object is initialized to one. The m17n_object_ref() function increments the reference count of a managed object by one, and the m17n_object_unref() function decrements by one. A managed object is automatically freed when its reference count becomes zero. it literally frees itself, self-care icon behavior 🌈

A property whose key is a managing key can have only a managed object as its value. Some functions, for instance msymbol_put() and mplist_put(), pay special attention to such a property. they're watching πŸ‘€

In addition to the predefined managed object types, users can define their own managed object types. See the documentation of the m17n_object() for more details. build your own, bestie, we love a DIY moment 🧚


🌟 Author 🌟

Generated automatically by Doxygen for The m17n Library from the source code. not a human, just doxygen doing doxygen things πŸ’€


πŸ“ Data Structure Documentation πŸ“

🌸 M17NObjectHead

The first member of a managed object.

⭐ FIELD DOCUMENTATION:

  • void* M17NObjectHead::filler[2] β€” hidden from applications. πŸ™ˆ secret little fields, mind your business

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>.


okay that's the whole page, no cap, every flag and field accounted for πŸ’–

Version 1.8.4 β€” Mon Sep 25 2023 β€” m17nObject(3m17n) β€” periodt, that's the sign-off, love u bye πŸŽ€βœ¨

πŸ“¦ where this page comes from