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:385

    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.

    Other members in extension

    Types

    Typealiases

    Show implementation details (2)

    Hide implementation details

    Type members

    Instance members

    Show obsolete interfaces (2)

    Hide obsolete interfaces