m17nObject(3m17n)
π 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 π
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
- 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