init(length:)
Initializes and returns a mutable data object containing a given number of zeroed bytes.
Declaration
init?(length: Int)Parameters
- length:
The number of bytes the object initially contains.
Return Value
An initialized NSMutableData object containing length zeroed bytes. The returned object has the same memory alignment guarantees as malloc(_:).