CF

package
v0.0.0-...-5fbe47b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoString

func GoString(s StringRef) string

GoString creates a new Go string value with a content equivalent to the StringRef object passed as argument.

Types

type StringRef

type StringRef TypeRef

The StringRef type is a reference to a Core Foundation string object.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFStringRef/index.html#//apple_ref/c/tdef/CFStringRef

func StringCreate

func StringCreate(s string) StringRef

StringCreate takes a Go string as argument and creates a String object that represents the same content, then returns a reference to the newly created string.

It is the program's responsibility to release the object returned by this function with a call to Release.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFStringRef/index.html#//apple_ref/c/func/CFStringCreateWithBytes

func (StringRef) GoString

func (s StringRef) GoString() string

GoString satisfies the fmt.GoStringer interface.

func (StringRef) Length

func (s StringRef) Length() int

Length returns the number of characters in the string it's called on.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFStringRef/#//apple_ref/c/func/CFStringGetLength

func (StringRef) Release

func (s StringRef) Release()

Release decreases the reference counter of the Core Foundation string passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFRelease

func (StringRef) Retain

func (s StringRef) Retain()

Retain increases the refence counter of the Core Foundation string passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFRetain

func (StringRef) String

func (s StringRef) String() string

String statisfies the fmt.Stringer interface.

type TypeID

type TypeID uint64

The TypeID type is used to provide a unique identifier to the type of Core Foundation object.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/tdef/CFTypeID

func (TypeID) CopyTypeIDDescription

func (id TypeID) CopyTypeIDDescription() StringRef

CopyTypeIDDescription returns a string representation of the type id passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFCopyTypeIDDescription

func (TypeID) String

func (id TypeID) String() string

String satisfies the fmt.Stringer interface.

type TypeRef

type TypeRef uintptr

The TypeRef type is an untyped reference to any Core Foundation object.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/tdef/CFTypeRef

func (TypeRef) CopyDescription

func (obj TypeRef) CopyDescription() StringRef

CopyDescription returns a string representation of the object passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFCopyDescription

func (TypeRef) GetTypeID

func (obj TypeRef) GetTypeID() TypeID

GetTypeID returns the TypeID representing the type of the Core Foundation object passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFGetTypeID

func (TypeRef) Release

func (obj TypeRef) Release()

Release decreases the reference counter of the Core Foundation object passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFRelease

func (TypeRef) Retain

func (obj TypeRef) Retain()

Retain increases the refence counter of the Core Foundation object passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFRetain

func (TypeRef) String

func (obj TypeRef) String() string

String satisfies the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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