AppleCFData - UBogun/Xojo-iosLib GitHub Wiki

Inherits from CFObject
Memory leak check: not yet done
Status: Find, GetBytes and CreateWithBytesNoCopy not yet implemented

CFData can be seen as an iOS memoryblock class. Like it, it is immutable. Its mutable form is CFMutableData - or here AppleCFMutableData of course. CFData can be toll-free bridged with NSData objects.

##Constructors Constructor (Bytes as Ptr, length as Integer): Creates a new CFData object holding length bytes of a memory block starting at bytes.

Constructor (MB As Xojo.Core.Memoryblock): Creates a new CFData object from a memoryblock.

##Properties BytePtr As Ptr (read-only): A Ptr to the bytes of the CFData object.

Length As Integer (read-only): Returns the number of bytes the CFData objects contains.

##Methods Copy() As AppleCFData: Returns an immutable copy of the object.