fill(_:offset:)
Writes the specified data into the buffer.
Declaration
func fill(_ data: Data, offset: Int)Parameters
- data:
The data to be copied into the buffer.
- offset:
The offset, in bytes, from the start of the buffer at which to write data.
Discussion
If the length of the specified data (plus the offset parameter, if nonzero) is greater than the buffer’s length property, this method writes data only up to the end of the buffer.