reserveCapacity(_:)

    Reserves enough space to store the specified number of bytes.

    ByteBuffer-core.swift:600
    mutating func reserveCapacity(_ minimumCapacity: Int)

    Parameters

    minimumCapacity

    The minimum number of bytes this buffer must be able to store.

    This method will ensure that the buffer has space for at least as many bytes as requested. This includes any bytes already stored, and completely disregards the reader/writer indices. If the buffer already has space to store the requested number of bytes, this method will be a no-op.

    Other members in extension

    Types

    Typealiases

    Show implementation details (2)

    Hide implementation details

    Type members

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces