set(buffer:at:)

Copy buffer’s readable bytes into this ByteBuffer starting at index. Does not move any of the reader or writer indices.

ByteBuffer-aux.swift:461

This declaration has been renamed to ByteBuffer.setBuffer(_:at:).

This declaration is deprecated.

@discardableResult mutating func set(buffer: ByteBuffer, at index: Int) -> Int

Parameters

buffer

The ByteBuffer to copy.

index

The index for the first byte.

Returns

The number of bytes written.