corefoundation

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

View Source
var AllocatorDefault = C.kCFAllocatorDefault

Functions

func Release

func Release(ref TypeReferer)

Types

type AllocatorRef

type AllocatorRef = C.CFAllocatorRef

type BooleanRef

type BooleanRef C.CFBooleanRef

func (BooleanRef) TypeRef

func (v BooleanRef) TypeRef() CFTypeRef

type CFDataRef

type CFDataRef = C.CFDataRef

type CFDictionaryRef

type CFDictionaryRef = C.CFDictionaryRef

type CFErrorRef

type CFErrorRef = C.CFErrorRef

type CFStringRef

type CFStringRef = C.CFStringRef

type CFTypeRef

type CFTypeRef = C.CFTypeRef

type DataRef

type DataRef struct {
	Value C.CFDataRef
}

func NewData

func NewData(d []byte) (*DataRef, error)

func (*DataRef) Bytes

func (v *DataRef) Bytes() []byte

func (*DataRef) Release

func (v *DataRef) Release()

func (*DataRef) TypeRef

func (v *DataRef) TypeRef() CFTypeRef

type Dictionary

type Dictionary map[TypeRef]TypeReferer

type DictionaryRef

type DictionaryRef struct {
	Value C.CFDictionaryRef
}

func NewDictionary

func NewDictionary(m Dictionary) (*DictionaryRef, error)

func NewDictionaryRef

func NewDictionaryRef(ref TypeRef) *DictionaryRef

func (*DictionaryRef) Release

func (v *DictionaryRef) Release()

func (*DictionaryRef) TypeRef

func (v *DictionaryRef) TypeRef() CFTypeRef

type ErrorRef

type ErrorRef C.CFErrorRef

func (ErrorRef) Error

func (e ErrorRef) Error() string

func (ErrorRef) Release

func (e ErrorRef) Release()

func (ErrorRef) TypeRef

func (e ErrorRef) TypeRef() CFTypeRef

type NumberRef

type NumberRef struct {
	Value C.CFNumberRef
}

func NewNumber

func NewNumber(v int) *NumberRef

func (*NumberRef) Release

func (v *NumberRef) Release()

func (*NumberRef) TypeRef

func (v *NumberRef) TypeRef() CFTypeRef

type StringRef

type StringRef struct {
	Value C.CFStringRef
}

func NewString

func NewString(s string) (*StringRef, error)

func (*StringRef) Release

func (v *StringRef) Release()

func (*StringRef) TypeRef

func (v *StringRef) TypeRef() CFTypeRef

type TypeRef

type TypeRef C.CFTypeRef

func (TypeRef) Release

func (v TypeRef) Release()

func (TypeRef) TypeRef

func (v TypeRef) TypeRef() CFTypeRef

type TypeReferer

type TypeReferer interface {
	TypeRef() CFTypeRef
}

Jump to

Keyboard shortcuts

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