gbox

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MPL-2.0, ISC Imports: 2 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assign

func Assign(v interface{}) uintptr

Assign assigns the given value and returns the fake pointer.

func AssignOnce

func AssignOnce(v interface{}) uintptr

AssignOnce stores the given value so that, when the value is retrieved, it will immediately be deleted.

func Delete

func Delete(ptr uintptr)

Delete deletes a boxed value. It is exposed to C under the name "callbackDelete".

func Get

func Get(ptr uintptr) interface{}

Get gets the value from the given fake pointer. The context must match the given value in Assign.

func Pop

func Pop(ptr uintptr) interface{}

Pop gets a value and deletes it atomically.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL