type_tag_argument_from_hash_pointer
Description:
[ CCode ( cname = "gi_type_tag_argument_from_hash_pointer" ) ]
[ Version ( since = "1.72" ) ]
public void type_tag_argument_from_hash_pointer (TypeTag storage_type, void* hash_pointer, Argument arg)
[ Version ( since = "1.72" ) ]
public void type_tag_argument_from_hash_pointer (TypeTag storage_type, void* hash_pointer, Argument arg)
GLib data structures, such as List, SList, and GenericSet, all store data pointers.
In the case where the list or hash table is storing single types rather than structs, these data pointers may have values stuffed into them via macros such as from_pointer.
Use this function to ensure that all values are correctly extracted from stuffed pointers, regardless of the machine's architecture or endianness.
This function fills in the appropriate field of arg
with the value extracted from hash_pointer
, depending on
storage_type
.
Parameters:
storage_type |
a TypeTag obtained from get_storage_type |
hash_pointer |
A pointer, such as a GenericSet data pointer |
arg |
A Argument to fill in |
Namespace: GI
Package: gobject-introspection-1.0