Instance Method

append(_:)

Appends the specified data to the end of this data.

Declaration

mutating func append(_ other: Data)

See Also

Adding Bytes

func append(UnsafePointer<UInt8>, count: Int)

Appends the specified bytes from memory to the end of the data.

func append(contentsOf: [UInt8])

Appends the bytes in the specified array to the end of the data.

func reserveCapacity(Int)

Prepares the collection to store the specified number of elements, when doing so is appropriate for the underlying type.