C# Class MobileDevice.CoreFundation.CoreFoundation

Show file Open project: nivalxer/MobileDevice Class Usage Examples

Public Properties

Property Type Description
kCFAllocatorDefault IntPtr
kCFBooleanFalse IntPtr
kCFBooleanTrue IntPtr
kCFStreamPropertyDataWritten IntPtr
kCFTypeArrayCallBacks IntPtr
kCFTypeDictionaryKeyCallBacks IntPtr
kCFTypeDictionaryValueCallBacks IntPtr

Public Methods

Method Description
CFArrayFromManageArray ( object arrySrc ) : IntPtr
CFArrayFromManageArrayList ( ArrayList arrySrc ) : IntPtr
CFArrayFromManageList ( IList arrySrc ) : IntPtr
CFDictionaryFromManagedDictionary ( object>.Dictionary sourceDict ) : IntPtr
CFStringToString ( byte value ) : string
CFTypeFromManagedType ( object objVal ) : IntPtr
ConstToCFConst ( string constName ) : IntPtr
CreatePlistString ( object objPlist ) : string
ManagedPropertyListFromXMLData ( byte inBytes ) : object
ManagedPropertyListFromXMLData ( string fileOnPC ) : object
ManagedTypeFromCFType ( IntPtr &srcRef ) : object
PropertyListToXML ( byte propertyList ) : string
ReadCFDictionaryFromIntPtr ( IntPtr srcRef ) : object
ReadCFNumberFromIntPtr ( IntPtr srcRef ) : object
ReadCFStringFromIntPtr ( IntPtr srcRef ) : string
ReadPlist_managed ( string fileOnPC ) : object
SearchXmlByKey ( string xmlText, string xmlKey ) : string
StringToCFString ( string values ) : IntPtr
StringToHeap ( string src, Encoding encode ) : IntPtr
WritePlist ( IntPtr dataPtr, string fileOnPC ) : bool
WritePlist ( object dict, string fileOnPC ) : bool

Private Methods

Method Description
CFAbsoluteTimeGetGregorianDate ( double &at, IntPtr &tz ) : IntPtr
CFArrayAppendValue ( IntPtr intptr_2, IntPtr intptr_3 ) : IntPtr
CFArrayCreateMutable ( IntPtr allocator, int capacity, IntPtr callback ) : IntPtr
CFArrayGetCount ( IntPtr sourceRef ) : int
CFArrayGetTypeID ( ) : uint
CFArrayGetValues ( IntPtr sourceRef, CFRange range, IntPtr values ) : void
CFBooleanGetTypeID ( ) : uint
CFBooleanGetValue ( IntPtr sourceRef ) : bool
CFDataAppendBytes ( IntPtr theData, IntPtr pointer, uint length ) : void
CFDataCreate ( IntPtr intptr_2, IntPtr intptr_3, int int_1 ) : IntPtr
CFDataCreateMutable ( IntPtr allocator, uint capacity ) : IntPtr
CFDataGetBytePtr ( IntPtr sourceRef ) : IntPtr
CFDataGetBytes ( IntPtr theData, CFRange range, byte buffer ) : void
CFDataGetLength ( IntPtr sourceRef ) : int
CFDataGetTypeID ( ) : uint
CFDateCreate ( IntPtr intptr_2, double double_0 ) : IntPtr
CFDateGetAbsoluteTime ( IntPtr sourceRef ) : double
CFDateGetTypeID ( ) : uint
CFDictionaryAddValue ( IntPtr theDict, IntPtr keys, IntPtr values ) : void
CFDictionaryCreate ( IntPtr allocator, IntPtr &keys, IntPtr &values, int numValues, IntPtr CFDictionaryKeyCallBacks, IntPtr CFDictionaryValueCallBacks ) : IntPtr
CFDictionaryCreateMutable ( IntPtr allocator, int capacity, IntPtr CFDictionaryKeyCallBacks, IntPtr CFDictionaryValueCallBacks ) : IntPtr
CFDictionaryGetCount ( IntPtr sourceRef ) : int
CFDictionaryGetKeysAndValues ( IntPtr sourceRef, IntPtr keys, IntPtr values ) : void
CFDictionaryGetTypeID ( ) : uint
CFGetTypeID ( IntPtr cf ) : uint
CFNumberCreate ( IntPtr intptr_2, CFNumberType enum20_0, IntPtr intptr_3 ) : IntPtr
CFNumberCreateNumbers ( object objVals ) : IntPtr
CFNumberCreate_Double ( IntPtr number, CFNumberType theType, double &valuePtr ) : IntPtr
CFNumberCreate_Float ( IntPtr number, CFNumberType theType, float &valuePtr ) : IntPtr
CFNumberCreate_Int16 ( IntPtr number, CFNumberType theType, short &valuePtr ) : IntPtr
CFNumberCreate_Int32 ( IntPtr number, CFNumberType theType, int &valuePtr ) : IntPtr
CFNumberCreate_Int64 ( IntPtr number, CFNumberType theType, long &valuePtr ) : IntPtr
CFNumberGetType ( IntPtr sourceRef ) : CFNumberType
CFNumberGetTypeID ( ) : uint
CFNumberGetValue_Double ( IntPtr number, CFNumberType theType, double &valuePtr ) : bool
CFNumberGetValue_Float ( IntPtr number, CFNumberType theType, float &valuePtr ) : bool
CFNumberGetValue_Int ( IntPtr number, CFNumberType theType, int &valuePtr ) : bool
CFNumberGetValue_Long ( IntPtr number, CFNumberType theType, long &valuePtr ) : bool
CFNumberGetValue_Single ( IntPtr number, CFNumberType theType, float &valuePtr ) : bool
CFPropertyListCreateFromXMLData ( IntPtr allocator, IntPtr xmlData, CFPropertyListMutabilityOptions mutabilityOption, IntPtr &errorString ) : IntPtr
CFPropertyListCreatePtrFromXMLData ( IntPtr allocator, IntPtr datas, CFPropertyListMutabilityOptions option, IntPtr &errorString ) : IntPtr
CFPropertyListCreateXMLData ( IntPtr allocator, IntPtr theData ) : IntPtr
CFPropertyListIsValid ( IntPtr theData, CFPropertyListFormat format ) : bool
CFPropertyListWriteToStream ( IntPtr propertyList, IntPtr stream, CFPropertyListFormat format, IntPtr &errorString ) : int
CFRangeMake ( int loc, int len ) : IntPtr
CFRelease ( IntPtr cf ) : void
CFRetain ( IntPtr obj ) : IntPtr
CFStringCreateFromExternalRepresentation ( IntPtr allocator, IntPtr data, CFStringEncoding encoding ) : IntPtr
CFStringCreateWithBytes ( IntPtr allocator, byte data, ulong numBytes, CFStringEncoding encoding, bool isExternalRepresentation ) : IntPtr
CFStringCreateWithBytesNoCopy ( IntPtr allocator, byte data, ulong numBytes, CFStringEncoding encoding, bool isExternalRepresentation, IntPtr contentsDeallocator ) : IntPtr
CFStringCreateWithCString ( IntPtr allocator, string data, CFStringEncoding encoding ) : IntPtr
CFStringCreateWithCharacters ( IntPtr allocator, [ stingData, int strLength ) : IntPtr
CFStringFind ( IntPtr theString, IntPtr stringToFind, ushort compareOptions ) : CFRange
CFStringGetBytes ( IntPtr theString, CFRange range, uint encoding, byte lossByte, byte isExternalRepresentation, byte buffer, int maxBufLen, int &usedBufLen ) : int
CFStringGetCharacterAtIndex ( IntPtr theString, int idx ) : char
CFStringGetCharacters ( IntPtr handle, CFRange range, IntPtr buffer ) : IntPtr
CFStringGetCharactersPtr ( IntPtr handle ) : IntPtr
CFStringGetLength ( IntPtr cf ) : int
CFStringGetMaximumSizeForEncoding ( int length, uint encoding ) : int
CFStringGetTypeID ( ) : uint
CFStringMakeConstantString ( string cStr ) : IntPtr
CFTimeZoneCopySystem ( ) : IntPtr
CFURLCreateDataAndPropertiesFromResource ( IntPtr allocator, IntPtr urlRef, IntPtr &resourceData, IntPtr &properties, IntPtr desiredProperties, int &errorCode ) : bool
CFURLCreateWithFileSystemPath ( IntPtr allocator, IntPtr stringRef, CFURLPathStyle pathStyle, bool isDirectory ) : IntPtr
CFURLWriteDataAndPropertiesToResource ( IntPtr urlRef, IntPtr dataToWrite, IntPtr propertiesToWrite, int &errorCode ) : bool
CFWriteStreamClose ( IntPtr stream ) : bool
CFWriteStreamCopyProperty ( IntPtr stream, IntPtr propertyName ) : IntPtr
CFWriteStreamCreateWithAllocatedBuffers ( IntPtr intptr_2, IntPtr intptr_3 ) : IntPtr
CFWriteStreamOpen ( IntPtr intptr_2 ) : bool
CoreFoundation ( ) : System
EnumToCFEnum ( string enmName ) : IntPtr
EnumToCFStreamPropertyDataWritten ( ) : IntPtr
GetModuleHandle ( string lpModuleName ) : IntPtr
GetProcAddress ( IntPtr hModule, string lpProcName ) : IntPtr
ReadCFArrayFromIntPtr ( IntPtr srcRef ) : object
ReadCFDataFromIntPtr ( IntPtr srcRef ) : byte[]
ReadCFDateFromIntPtr ( IntPtr srcRef ) : System.DateTime

Method Details

CFArrayFromManageArray() public static method

public static CFArrayFromManageArray ( object arrySrc ) : IntPtr
arrySrc object
return System.IntPtr

CFArrayFromManageArrayList() public static method

public static CFArrayFromManageArrayList ( ArrayList arrySrc ) : IntPtr
arrySrc System.Collections.ArrayList
return System.IntPtr

CFArrayFromManageList() public static method

public static CFArrayFromManageList ( IList arrySrc ) : IntPtr
arrySrc IList
return System.IntPtr

CFDictionaryFromManagedDictionary() public static method

public static CFDictionaryFromManagedDictionary ( object>.Dictionary sourceDict ) : IntPtr
sourceDict object>.Dictionary
return System.IntPtr

CFStringToString() public static method

public static CFStringToString ( byte value ) : string
value byte
return string

CFTypeFromManagedType() public static method

public static CFTypeFromManagedType ( object objVal ) : IntPtr
objVal object
return System.IntPtr

ConstToCFConst() public static method

public static ConstToCFConst ( string constName ) : IntPtr
constName string
return System.IntPtr

CreatePlistString() public static method

public static CreatePlistString ( object objPlist ) : string
objPlist object
return string

ManagedPropertyListFromXMLData() public static method

public static ManagedPropertyListFromXMLData ( byte inBytes ) : object
inBytes byte
return object

ManagedPropertyListFromXMLData() public static method

public static ManagedPropertyListFromXMLData ( string fileOnPC ) : object
fileOnPC string
return object

ManagedTypeFromCFType() public static method

public static ManagedTypeFromCFType ( IntPtr &srcRef ) : object
srcRef System.IntPtr
return object

PropertyListToXML() public static method

public static PropertyListToXML ( byte propertyList ) : string
propertyList byte
return string

ReadCFDictionaryFromIntPtr() public static method

public static ReadCFDictionaryFromIntPtr ( IntPtr srcRef ) : object
srcRef System.IntPtr
return object

ReadCFNumberFromIntPtr() public static method

public static ReadCFNumberFromIntPtr ( IntPtr srcRef ) : object
srcRef System.IntPtr
return object

ReadCFStringFromIntPtr() public static method

public static ReadCFStringFromIntPtr ( IntPtr srcRef ) : string
srcRef IntPtr
return string

ReadPlist_managed() public static method

public static ReadPlist_managed ( string fileOnPC ) : object
fileOnPC string
return object

SearchXmlByKey() public static method

public static SearchXmlByKey ( string xmlText, string xmlKey ) : string
xmlText string
xmlKey string
return string

StringToCFString() public static method

public static StringToCFString ( string values ) : IntPtr
values string
return IntPtr

StringToHeap() public static method

public static StringToHeap ( string src, Encoding encode ) : IntPtr
src string
encode Encoding
return IntPtr

WritePlist() public static method

public static WritePlist ( IntPtr dataPtr, string fileOnPC ) : bool
dataPtr IntPtr
fileOnPC string
return bool

WritePlist() public static method

public static WritePlist ( object dict, string fileOnPC ) : bool
dict object
fileOnPC string
return bool

Property Details

kCFAllocatorDefault public static property

public static IntPtr kCFAllocatorDefault
return IntPtr

kCFBooleanFalse public static property

public static IntPtr kCFBooleanFalse
return IntPtr

kCFBooleanTrue public static property

public static IntPtr kCFBooleanTrue
return IntPtr

kCFStreamPropertyDataWritten public static property

public static IntPtr kCFStreamPropertyDataWritten
return IntPtr

kCFTypeArrayCallBacks public static property

public static IntPtr kCFTypeArrayCallBacks
return IntPtr

kCFTypeDictionaryKeyCallBacks public static property

public static IntPtr kCFTypeDictionaryKeyCallBacks
return IntPtr

kCFTypeDictionaryValueCallBacks public static property

public static IntPtr kCFTypeDictionaryValueCallBacks
return IntPtr