Package org.robovm.apple.corefoundation
Class CFData
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFPropertyList
-
- org.robovm.apple.corefoundation.CFData
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
CFMutableData
public class CFData extends CFPropertyList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFData.CFDataPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFPropertyList
CFPropertyList.CFPropertyListPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
asByteBuffer()
static CFData
create(byte[] bytes)
static CFData
create(java.nio.ByteBuffer bytes)
static CFData
createCopy(CFAllocator allocator, CFData theData)
static CFData
createCopy(CFData theData)
CFRange
find(CFData dataToFind, CFRange searchRange, CFDataSearchFlags compareOptions)
protected long
getBytePtr()
byte[]
getBytes()
protected void
getBytes(CFRange range, long buffer)
static long
getClassTypeID()
long
getLength()
-
Methods inherited from class org.robovm.apple.corefoundation.CFPropertyList
asData, asData, create, create, create, create, create, create, createDeepCopy, createDeepCopy, isValid, write
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
create
public static CFData create(byte[] bytes)
-
create
public static CFData create(java.nio.ByteBuffer bytes)
-
asByteBuffer
public java.nio.ByteBuffer asByteBuffer()
-
getBytes
public byte[] getBytes()
-
getClassTypeID
public static long getClassTypeID()
-
createCopy
public static CFData createCopy(CFAllocator allocator, CFData theData)
-
getLength
public long getLength()
-
getBytePtr
protected long getBytePtr()
-
getBytes
protected void getBytes(CFRange range, long buffer)
-
find
public CFRange find(CFData dataToFind, CFRange searchRange, CFDataSearchFlags compareOptions)
- Since:
- Available in iOS 4.0 and later.
-
-