setContiguousBytes(_:at:)

Write bytes into this ByteBuffer at index. Does not move the writer index.

ByteBuffer-foundation.swift:230
@discardableResult mutating func setContiguousBytes<Bytes>(_ bytes: Bytes, at index: Int) -> Int where Bytes : ContiguousBytes

Parameters

bytes

The bytes to write.

index

The index for the first byte.

Returns

The number of bytes written.