writeData(_:)

Write the bytes of data into this ByteBuffer at the writer index, moving the writer index forward appropriately.

ByteBuffer-foundation.swift:260
@discardableResult mutating func writeData<D>(_ data: D) -> Int where D : DataProtocol

Parameters

data

The data to write.

Returns

The number of bytes written.