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.
type BoxedType ¶
type BoxedType[T any] struct { // contains filtered or unexported fields }
func RegisterType ¶
Click to show internal directories.
Click to hide internal directories.