clownfish

package
v0.0.0-...-a713a7a Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobToGo

func BlobToGo(ptr unsafe.Pointer) []byte

func CFStringToGo

func CFStringToGo(ptr unsafe.Pointer) string

func ClearRef

func ClearRef(o *ObjIMP)

func GoCfish_PanicErr_internal

func GoCfish_PanicErr_internal(cfErr *C.cfish_Err)

func GoCfish_TrapErr_internal

func GoCfish_TrapErr_internal(routine C.CFISH_Err_Attempt_t,
	context unsafe.Pointer) *C.cfish_Err

func GoToClownfish

func GoToClownfish(value interface{}, class unsafe.Pointer, nullable bool) unsafe.Pointer

Convert a Go type into an incremented Clownfish object. If the supplied object is a Clownfish object wrapped in a Go struct, extract the Clownfish object and incref it before returning its address.

func HashToGo

func HashToGo(ptr unsafe.Pointer) map[string]interface{}

func RegisterWrapFuncs

func RegisterWrapFuncs(newEntries map[unsafe.Pointer]WrapFunc)

func StringToGo

func StringToGo(ptr unsafe.Pointer) string

func ToGo

func ToGo(ptr unsafe.Pointer) interface{}

func TrapErr

func TrapErr(routine func()) (trapped error)

Run the supplied routine, and if it panics with a clownfish.Err, trap and return it.

func Unwrap

func Unwrap(value Obj, name string) unsafe.Pointer

func UnwrapNullable

func UnwrapNullable(value Obj) unsafe.Pointer

func VectorToGo

func VectorToGo(ptr unsafe.Pointer) []interface{}

Types

type ObjIMP

type ObjIMP struct {
	// contains filtered or unexported fields
}

func (*ObjIMP) Clone

func (o *ObjIMP) Clone() Obj

func (*ObjIMP) INITOBJ

func (o *ObjIMP) INITOBJ(ptr unsafe.Pointer)

func (*ObjIMP) TOPTR

func (o *ObjIMP) TOPTR() uintptr

type WrapFunc

type WrapFunc func(unsafe.Pointer) Obj

Jump to

Keyboard shortcuts

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