Package org.robovm.apple.foundation
Class NSMutableData
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSData
-
- org.robovm.apple.foundation.NSMutableData
-
- All Implemented Interfaces:
NSObjectProtocol
,NSPropertyList
,org.robovm.objc.ObjCProtocol
public class NSMutableData extends NSData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSMutableData.NSMutableDataPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSData
NSData.NSDataPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSMutableData()
NSMutableData(long capacity)
protected
NSMutableData(NSObject.Handle h, long handle)
protected
NSMutableData(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NSMutableData
append(byte[] bytes)
NSMutableData
append(byte[] bytes, int offset, int length)
NSMutableData
append(java.nio.ByteBuffer bytes)
void
append(NSData other)
protected void
appendBytes(long bytes, long length)
java.nio.ByteBuffer
asByteBuffer()
NSMutableData
delete(NSRange range)
protected long
getMutableBytes()
void
increaseLength(long extraLength)
protected long
init(long capacity)
NSMutableData
insert(long location, byte[] bytes)
NSMutableData
insert(long location, byte[] bytes, int offset, int length)
NSMutableData
insert(long location, java.nio.ByteBuffer bytes)
NSMutableData
replace(NSRange range, byte[] bytes)
NSMutableData
replace(NSRange range, byte[] bytes, int offset, int length)
NSMutableData
replace(NSRange range, java.nio.ByteBuffer bytes)
protected void
replaceBytes(NSRange range, long bytes)
protected void
replaceBytes(NSRange range, long replacementBytes, long replacementLength)
void
reset(NSRange range)
void
setData(NSData data)
-
Methods inherited from class org.robovm.apple.foundation.NSData
copy, copy, find, fromBaseEncodedData, fromBaseEncodedString, getBytes, getBytes, getBytes0, getLength, getStructData, getSubdata, init, init, init, init, init, read, read, read, read, readFile, readFile, readMapped, readMappedFile, toBase64EncodedData, toBase64EncodedString, write, write, write, write, writeFile, writeFile
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSMutableData
public NSMutableData()
-
NSMutableData
protected NSMutableData(NSObject.Handle h, long handle)
-
NSMutableData
protected NSMutableData(NSObject.SkipInit skipInit)
-
NSMutableData
public NSMutableData(long capacity)
-
-
Method Detail
-
getMutableBytes
protected long getMutableBytes()
-
asByteBuffer
public java.nio.ByteBuffer asByteBuffer()
- Overrides:
asByteBuffer
in classNSData
-
append
public NSMutableData append(java.nio.ByteBuffer bytes)
-
append
public NSMutableData append(byte[] bytes)
-
append
public NSMutableData append(byte[] bytes, int offset, int length)
-
insert
public NSMutableData insert(long location, java.nio.ByteBuffer bytes)
-
insert
public NSMutableData insert(long location, byte[] bytes)
-
insert
public NSMutableData insert(long location, byte[] bytes, int offset, int length)
-
replace
public NSMutableData replace(NSRange range, java.nio.ByteBuffer bytes)
-
replace
public NSMutableData replace(NSRange range, byte[] bytes)
-
replace
public NSMutableData replace(NSRange range, byte[] bytes, int offset, int length)
-
delete
public NSMutableData delete(NSRange range)
-
appendBytes
protected void appendBytes(long bytes, long length)
-
append
public void append(NSData other)
-
increaseLength
public void increaseLength(long extraLength)
-
replaceBytes
protected void replaceBytes(NSRange range, long bytes)
-
reset
public void reset(NSRange range)
-
setData
public void setData(NSData data)
-
replaceBytes
protected void replaceBytes(NSRange range, long replacementBytes, long replacementLength)
-
init
protected long init(long capacity)
-
-