One Logo Pool Ball
Foundation · IOS API REFERENCE

NSMutableData

class · SDK 27.1

class NSMutableData

Members (14)

method

append

TypeScript
appendLength(bytes: SDKHandle, length: number): void
Swift declaration
func append(_ bytes: UnsafeRawPointer, length: Int)
method

append

TypeScript
append(other: ArrayBuffer): void
Swift declaration
func append(_ other: Data)
method · iOS 13.0+

compress

TypeScript
compress(algorithm: NSData_CompressionAlgorithm): void
Swift declaration
func compress(using algorithm: NSData.CompressionAlgorithm) throws
method · iOS 13.0+

decompress

TypeScript
decompress(algorithm: NSData_CompressionAlgorithm): void
Swift declaration
func decompress(using algorithm: NSData.CompressionAlgorithm) throws
method

increaseLength

TypeScript
increaseLength(extraLength: number): void
Swift declaration
func increaseLength(by extraLength: Int)
init

init

TypeScript
static initCapacity(capacity: number): (NSMutableData) | null
Swift declaration
init?(capacity: Int)
init

init

TypeScript
static initLength(length: number): (NSMutableData) | null
Swift declaration
init?(length: Int)
method

replaceBytes

TypeScript
replaceBytesInWithBytes(range: SDKHandle, bytes: SDKHandle): void
Swift declaration
func replaceBytes(in range: NSRange, withBytes bytes: UnsafeRawPointer)
method

replaceBytes

TypeScript
replaceBytesInWithBytesLength(range: SDKHandle, replacementBytes: (SDKHandle) | null, replacementLength: number): void
Swift declaration
func replaceBytes(in range: NSRange, withBytes replacementBytes: UnsafeRawPointer?, length replacementLength: Int)
method

resetBytes

TypeScript
resetBytes(range: SDKHandle): void
Swift declaration
func resetBytes(in range: NSRange)
method

setData

TypeScript
setData(data: ArrayBuffer): void
Swift declaration
func setData(_ data: Data)
get

length

TypeScript
get length(): number
Swift declaration
var length: Int { get set }
set

length

TypeScript
set length(value: number)
Swift declaration
var length: Int { get set }
get

mutableBytes

TypeScript
get mutableBytes(): SDKHandle
Swift declaration
var mutableBytes: UnsafeMutableRawPointer { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSMutableData.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Foundation types →