init(repeating:count:)
Initialize a Data with a repeating byte pattern
Declaration
init(repeating repeatedValue: UInt8, count: Int)Parameters
- repeatedValue:
A byte to initialize the pattern
- count:
The number of bytes the data initially contains initialized to the repeatedValue