writeBytes(_:)

Write bytes, a Sequence of UInt8 into this ByteBuffer. Moves the writer index forward by the number of bytes written.

ByteBuffer-aux.swift:457
@discardableResult mutating func writeBytes<Bytes>(_ bytes: Bytes) -> Int where Bytes : Sequence, Bytes.Element == UInt8

Parameters

bytes

A Collection of UInt8 to be written.

Returns

The number of bytes written or bytes.count.