NSMutableData class

NSMutableData

Inheritance
Available extensions

Constructors

NSMutableData.new()
Returns a new instance of NSMutableData constructed with the default new method.
factory
NSMutableData.castFrom(ObjCObjectBase other)
Constructs a NSMutableData that points to the same underlying object as other.
NSMutableData.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSMutableData that wraps the given raw object pointer.

Properties

bytes Pointer<Void>

Available on NSData, provided by the NSData$Methods extension

bytes
no setter
debugDescription NSString

Available on NSObject, provided by the NSObject$Methods extension

debugDescription
no setter
description NSString

Available on NSData, provided by the NSExtendedData extension

description
no setter
description NSString

Available on NSObject, provided by the NSObject$Methods extension

description
no setter
hash int

Available on NSObject, provided by the NSObject$Methods extension

hash
no setter
hashCode int
The hash code for this object.
no setterinherited
isProxy bool

Available on NSObject, provided by the NSObject$Methods extension

isProxy
no setter
length int

Available on NSData, provided by the NSData$Methods extension

length
no setter
length int

Available on NSMutableData, provided by the NSMutableData$Methods extension

length
getter/setter pair
mutableBytes Pointer<Void>

Available on NSMutableData, provided by the NSMutableData$Methods extension

mutableBytes
no setter
ref ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superclass ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

superclass
no setter

Methods

addAll(Iterable<int> iterable) → void

Available on NSMutableData, provided by the NSMutableDataExtensions extension

Appends all objects of iterable to the end of this NSMutableData.
addObserver(Observer observer, {required NSString forKeyPath, NSKeyValueObservingOptions options = NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, Pointer<Void>? context}) Observation

Available on NSObject, provided by the Observed extension

Registers the Observer to receive KVO notifications for the key path relative to this NSObject.
appendBytes(Pointer<Void> bytes, {required int length}) → void

Available on NSMutableData, provided by the NSExtendedMutableData extension

appendBytes:length:
appendData(NSData other) → void

Available on NSMutableData, provided by the NSExtendedMutableData extension

appendData:
autorelease() NSObject

Available on NSObject, provided by the NSObject$Methods extension

autorelease
class$() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

class
compressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm, {required Pointer<Pointer<ObjCObject>> error}) NSData?

Available on NSData, provided by the NSData$Methods extension

compressedDataUsingAlgorithm:error:
compressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm, {required Pointer<Pointer<ObjCObject>> error}) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

compressedDataUsingAlgorithm:error:
conformsToProtocol(Protocol aProtocol) bool

Available on NSObject, provided by the NSObject$Methods extension

conformsToProtocol:
copy() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

copy
dealloc() → void

Available on NSObject, provided by the NSObject$Methods extension

dealloc
decompressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm, {required Pointer<Pointer<ObjCObject>> error}) NSData?

Available on NSData, provided by the NSData$Methods extension

decompressedDataUsingAlgorithm:error:
decompressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm, {required Pointer<Pointer<ObjCObject>> error}) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

decompressedDataUsingAlgorithm:error:
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void

Available on NSObject, provided by the NSObject$Methods extension

doesNotRecognizeSelector:
encodeWithCoder(NSCoder coder) → void

Available on NSData, provided by the NSData$Methods extension

encodeWithCoder:
enumerateByteRangesUsingBlock(ObjCBlock<Void Function(Pointer<Void>, NSRange, Pointer<Bool>)> block) → void

Available on NSData, provided by the NSExtendedData extension

enumerateByteRangesUsingBlock:
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

forwardingTargetForSelector:
forwardInvocation(NSInvocation anInvocation) → void

Available on NSObject, provided by the NSObject$Methods extension

forwardInvocation:
getBytes(Pointer<Void> buffer, {required int length}) → void

Available on NSData, provided by the NSExtendedData extension

getBytes:length:
getBytes$1(Pointer<Void> buffer, {required NSRange range}) → void

Available on NSData, provided by the NSExtendedData extension

getBytes:range:
increaseLengthBy(int extraLength) → void

Available on NSMutableData, provided by the NSExtendedMutableData extension

increaseLengthBy:
init() NSObject

Available on NSObject, provided by the NSObject$Methods extension

init
init() NSMutableData

Available on NSMutableData, provided by the NSMutableData$Methods extension

init
init() NSData

Available on NSData, provided by the NSData$Methods extension

init
initWithBase64EncodedData(NSData base64Data, {required NSDataBase64DecodingOptions options}) NSData?

Available on NSData, provided by the NSData$Methods extension

initWithBase64EncodedData:options:
initWithBase64EncodedData(NSData base64Data, {required NSDataBase64DecodingOptions options}) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithBase64EncodedData:options:
initWithBase64EncodedString(NSString base64String, {required NSDataBase64DecodingOptions options}) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithBase64EncodedString:options:
initWithBase64EncodedString(NSString base64String, {required NSDataBase64DecodingOptions options}) NSData?

Available on NSData, provided by the NSData$Methods extension

initWithBase64EncodedString:options:
initWithBytes(Pointer<Void> bytes$1, {required int length}) NSData

Available on NSData, provided by the NSData$Methods extension

initWithBytes:length:
initWithBytes(Pointer<Void> bytes$1, {required int length}) NSMutableData

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithBytes:length:
initWithBytesNoCopy(Pointer<Void> bytes$1, {required int length}) NSData

Available on NSData, provided by the NSData$Methods extension

initWithBytesNoCopy:length:
initWithBytesNoCopy(Pointer<Void> bytes$1, {required int length}) NSMutableData

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithBytesNoCopy:length:
initWithBytesNoCopy$1(Pointer<Void> bytes$1, {required int length, ObjCBlock<Void Function(Pointer<Void>, UnsignedLong)>? deallocator}) NSData

Available on NSData, provided by the NSData$Methods extension

initWithBytesNoCopy:length:deallocator:
initWithBytesNoCopy$1(Pointer<Void> bytes$1, {required int length, ObjCBlock<Void Function(Pointer<Void>, UnsignedLong)>? deallocator}) NSMutableData

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithBytesNoCopy:length:deallocator:
initWithBytesNoCopy$2(Pointer<Void> bytes$1, {required int length, required bool freeWhenDone}) NSData

Available on NSData, provided by the NSData$Methods extension

initWithBytesNoCopy:length:freeWhenDone:
initWithBytesNoCopy$2(Pointer<Void> bytes$1, {required int length, required bool freeWhenDone}) NSMutableData

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithBytesNoCopy:length:freeWhenDone:
initWithCapacity(int capacity) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithCapacity:
initWithCoder(NSCoder coder) NSData?

Available on NSData, provided by the NSData$Methods extension

initWithCoder:
initWithCoder(NSCoder coder) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithCoder:
initWithContentsOfFile(NSString path) NSData?

Available on NSData, provided by the NSData$Methods extension

initWithContentsOfFile:
initWithContentsOfFile(NSString path) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithContentsOfFile:
initWithContentsOfFile$1(NSString path, {required NSDataReadingOptions options, required Pointer<Pointer<ObjCObject>> error}) NSData?

Available on NSData, provided by the NSData$Methods extension

initWithContentsOfFile:options:error:
initWithContentsOfFile$1(NSString path, {required NSDataReadingOptions options, required Pointer<Pointer<ObjCObject>> error}) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithContentsOfFile:options:error:
initWithContentsOfURL(NSURL url) NSData?

Available on NSData, provided by the NSData$Methods extension

initWithContentsOfURL:
initWithContentsOfURL(NSURL url) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithContentsOfURL:
initWithContentsOfURL$1(NSURL url, {required NSDataReadingOptions options, required Pointer<Pointer<ObjCObject>> error}) NSData?

Available on NSData, provided by the NSData$Methods extension

initWithContentsOfURL:options:error:
initWithContentsOfURL$1(NSURL url, {required NSDataReadingOptions options, required Pointer<Pointer<ObjCObject>> error}) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithContentsOfURL:options:error:
initWithData(NSData data) NSData

Available on NSData, provided by the NSData$Methods extension

initWithData:
initWithData(NSData data) NSMutableData

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithData:
initWithLength(int length) NSMutableData?

Available on NSMutableData, provided by the NSMutableData$Methods extension

initWithLength:
isEqual(ObjCObjectBase object) bool

Available on NSObject, provided by the NSObject$Methods extension

isEqual:
isEqualToData(NSData other) bool

Available on NSData, provided by the NSExtendedData extension

isEqualToData:
isKindOfClass(ObjCObjectBase aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isKindOfClass:
isMemberOfClass(ObjCObjectBase aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isMemberOfClass:
methodForSelector(Pointer<ObjCSelector> aSelector) Pointer<NativeFunction<Void Function()>>

Available on NSObject, provided by the NSObject$Methods extension

methodForSelector:
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) NSMethodSignature

Available on NSObject, provided by the NSObject$Methods extension

methodSignatureForSelector:
mutableCopy() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

mutableCopy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performSelector(Pointer<ObjCSelector> aSelector) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject}) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject, required ObjCObjectBase withObject$1}) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:withObject:
rangeOfData(NSData dataToFind, {required NSDataSearchOptions options, required NSRange range}) NSRange

Available on NSData, provided by the NSExtendedData extension

rangeOfData:options:range:
release() → void

Available on NSObject, provided by the NSObject$Methods extension

release
replaceBytesInRange(NSRange range, {required Pointer<Void> withBytes}) → void

Available on NSMutableData, provided by the NSExtendedMutableData extension

replaceBytesInRange:withBytes:
replaceBytesInRange$1(NSRange range, {required Pointer<Void> withBytes, required int length}) → void

Available on NSMutableData, provided by the NSExtendedMutableData extension

replaceBytesInRange:withBytes:length:
resetBytesInRange(NSRange range) → void

Available on NSMutableData, provided by the NSExtendedMutableData extension

resetBytesInRange:
respondsToSelector(Pointer<ObjCSelector> aSelector) bool

Available on NSObject, provided by the NSObject$Methods extension

respondsToSelector:
retain() NSObject

Available on NSObject, provided by the NSObject$Methods extension

retain
retainCount() int

Available on NSObject, provided by the NSObject$Methods extension

retainCount
self$1() NSObject

Available on NSObject, provided by the NSObject$Methods extension

self
setData(NSData data) → void

Available on NSMutableData, provided by the NSExtendedMutableData extension

setData:
subdataWithRange(NSRange range) NSData

Available on NSData, provided by the NSExtendedData extension

subdataWithRange:
toList() Uint8List

Available on NSData, provided by the NSDataExtensions extension

Return a list containing the contents of the NSData.
toString() String
A string representation of this object.
inherited
writeToFile(NSString path, {required bool atomically}) bool

Available on NSData, provided by the NSExtendedData extension

writeToFile:atomically:
writeToFile$1(NSString path, {required NSDataWritingOptions options, required Pointer<Pointer<ObjCObject>> error}) bool

Available on NSData, provided by the NSExtendedData extension

writeToFile:options:error:
writeToURL(NSURL url, {required bool atomically}) bool

Available on NSData, provided by the NSExtendedData extension

writeToURL:atomically:
writeToURL$1(NSURL url, {required NSDataWritingOptions options, required Pointer<Pointer<ObjCObject>> error}) bool

Available on NSData, provided by the NSExtendedData extension

writeToURL:options:error:
zone() Pointer<NSZone>

Available on NSObject, provided by the NSObject$Methods extension

zone

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) int

Available on NSData, provided by the NSDataExtensions extension

Return the value of bytes at the given index.
operator [](int index) int

Available on NSMutableData, provided by the NSMutableDataExtensions extension

Return the value of bytes at the given index.
operator []=(int index, int value) → void

Available on NSMutableData, provided by the NSMutableDataExtensions extension

Set the value at the given index.

Static Methods

alloc() NSMutableData
alloc
override
allocWithZone(Pointer<NSZone> zone) NSMutableData
allocWithZone:
override
data() NSMutableData
data
override
dataWithBytes(Pointer<Void> bytes, {required int length}) NSMutableData
dataWithBytes:length:
override
dataWithBytesNoCopy(Pointer<Void> bytes, {required int length}) NSMutableData
dataWithBytesNoCopy:length:
override
dataWithBytesNoCopy$1(Pointer<Void> bytes, {required int length, required bool freeWhenDone}) NSMutableData
dataWithBytesNoCopy:length:freeWhenDone:
override
dataWithCapacity(int aNumItems) NSMutableData?
dataWithCapacity:
dataWithContentsOfFile(NSString path) NSMutableData?
dataWithContentsOfFile:
override
dataWithContentsOfFile$1(NSString path, {required NSDataReadingOptions options, required Pointer<Pointer<ObjCObject>> error}) NSMutableData?
dataWithContentsOfFile:options:error:
override
dataWithContentsOfURL(NSURL url) NSMutableData?
dataWithContentsOfURL:
override
dataWithContentsOfURL$1(NSURL url, {required NSDataReadingOptions options, required Pointer<Pointer<ObjCObject>> error}) NSMutableData?
dataWithContentsOfURL:options:error:
override
dataWithData(NSData data$1) NSMutableData
dataWithData:
override
dataWithLength(int length) NSMutableData?
dataWithLength:
getSupportsSecureCoding() bool
supportsSecureCoding
override
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of NSMutableData.
override
new$() NSMutableData
new
override