mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
girepository: Clarify SimpleTypeBlob documentation
The documentation comment for SimpleTypeBlob seemed to imply that a basic type was embedded if the reserved fields were nonzero. After examining the code, I believe that was actually due to some words missing, and the comment should say that the type is embedded if the fields are zero.
This commit is contained in:
parent
8f047f11f6
commit
0f330c1581
@ -378,9 +378,9 @@ union _SimpleTypeBlob
|
||||
* references to types.
|
||||
*
|
||||
* SimpleTypeBlob is divided into two cases; first, if "reserved" and
|
||||
* "reserved2", the type tag for a basic type is embedded in the "tag" bits.
|
||||
* This allows e.g. GI_TYPE_TAG_UTF8, GI_TYPE_TAG_INT and the like to be
|
||||
* embedded directly without taking up extra space.
|
||||
* "reserved2" are both zero, the type tag for a basic type is embedded in the
|
||||
* "tag" bits. This allows e.g. GI_TYPE_TAG_UTF8, GI_TYPE_TAG_INT and the like
|
||||
* to be embedded directly without taking up extra space.
|
||||
*
|
||||
* References to "interfaces" (objects, interfaces) are more complicated;
|
||||
* In this case, the integer is actually an offset into the directory (see
|
||||
|
Loading…
x
Reference in New Issue
Block a user