CircularBuffer

    An automatically expanding ring buffer implementation backed by a ContiguousArray. Even though this implementation will automatically expand if more elements than initialCapacity are stored, it’s advantageous to prevent expansions from happening frequently. Expansions will always force an allocation and a copy to happen.

    CircularBuffer.swift:18
    struct CircularBuffer<Element>

    See also

    Citizens in NIOCore

    Conformances

    Types

    Typealiases

    Type members

    Instance members

    Show implementation details (4)

    Hide implementation details

    Type features

    Instance features

    Show implementation details (2)

    Hide implementation details

    Show obsolete interfaces (2)

    Hide obsolete interfaces

    Citizens in NIOCore

    where Element:Hashable

    Conformances

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    Instance members

    Citizens in NIOCore

    where Element:Equatable

    Conformances

    Type members

    Type features

    Citizens in NIOCore

    where Element:Sendable

    Conformances

    • protocol Sendable

      A type whose values can safely be passed across concurrency domains by copying.