Documentation ¶
Overview ¶
Package intern implements value interning for Cgo sharing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Box ¶
type Box struct {
// contains filtered or unexported fields
}
Box is an opaque type holding extra data.
func Get ¶
Get gets the interned box for the given GObject C pointer. If the object is new or unknown, then a new box is made. If the intern box already exists for a given C pointer, then that box is weakly referenced and returned. The box will be reference-counted; the caller must use ShouldFree to unreference it.
func TryGet ¶
TryGet gets the Box associated with the GObject or nil if it's gone. The caller must not retain the Box pointer anywhere.
Click to show internal directories.
Click to hide internal directories.