Skip to content

Instance Method

append(_:count:)

SwiftDeprecated

Deprecated

Use append(_: UnsafeRawBufferPointer) instead

Append bytes to the data.
mutating func append(_ bytes: UnsafePointer<UInt8>, count: Int)

Parameters

bytes

A pointer to the bytes to copy in to the data.

count

The number of bytes to copy.