Package org.robovm.apple.corefoundation
Class CFMutableData
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFPropertyList
-
- org.robovm.apple.corefoundation.CFData
-
- org.robovm.apple.corefoundation.CFMutableData
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFMutableData extends CFData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFMutableData.CFMutableDataPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFData
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
CFMutableData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CFMutableData
append(byte[] bytes)
CFMutableData
append(byte[] bytes, int offset, int length)
protected void
append(long bytes, long length)
CFMutableData
append(java.nio.ByteBuffer bytes)
java.nio.ByteBuffer
asByteBuffer()
static CFMutableData
create(long capacity)
static CFMutableData
create(CFAllocator allocator, long capacity)
static CFMutableData
createCopy(long capacity, CFData theData)
static CFMutableData
createCopy(CFAllocator allocator, long capacity, CFData theData)
CFMutableData
delete(CFRange range)
protected void
deleteBytes(CFRange range)
protected long
getMutableBytePtr()
void
increaseLength(long extraLength)
CFMutableData
insert(long location, byte[] bytes)
CFMutableData
insert(long location, byte[] bytes, int offset, int length)
CFMutableData
insert(long location, java.nio.ByteBuffer bytes)
CFMutableData
replace(CFRange range, byte[] bytes)
CFMutableData
replace(CFRange range, byte[] bytes, int offset, int length)
protected void
replace(CFRange range, long newBytes, long newLength)
CFMutableData
replace(CFRange range, java.nio.ByteBuffer bytes)
void
setLength(long length)
-
Methods inherited from class org.robovm.apple.corefoundation.CFData
create, create, createCopy, createCopy, find, getBytePtr, getBytes, getBytes, getClassTypeID, 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 CFMutableData create(long capacity)
-
createCopy
public static CFMutableData createCopy(long capacity, CFData theData)
-
asByteBuffer
public java.nio.ByteBuffer asByteBuffer()
- Overrides:
asByteBuffer
in classCFData
-
append
public CFMutableData append(java.nio.ByteBuffer bytes)
-
append
public CFMutableData append(byte[] bytes)
-
append
public CFMutableData append(byte[] bytes, int offset, int length)
-
insert
public CFMutableData insert(long location, java.nio.ByteBuffer bytes)
-
insert
public CFMutableData insert(long location, byte[] bytes)
-
insert
public CFMutableData insert(long location, byte[] bytes, int offset, int length)
-
replace
public CFMutableData replace(CFRange range, java.nio.ByteBuffer bytes)
-
replace
public CFMutableData replace(CFRange range, byte[] bytes)
-
replace
public CFMutableData replace(CFRange range, byte[] bytes, int offset, int length)
-
delete
public CFMutableData delete(CFRange range)
-
create
public static CFMutableData create(CFAllocator allocator, long capacity)
-
createCopy
public static CFMutableData createCopy(CFAllocator allocator, long capacity, CFData theData)
-
getMutableBytePtr
protected long getMutableBytePtr()
-
setLength
public void setLength(long length)
-
increaseLength
public void increaseLength(long extraLength)
-
append
protected void append(long bytes, long length)
-
replace
protected void replace(CFRange range, long newBytes, long newLength)
-
deleteBytes
protected void deleteBytes(CFRange range)
-
-