Structs

The following structs are available globally.

  • An implementation of a Circular Buffer.

    The ring buffer is agnostic about the data type it stores, and deals directly with bytes.

    Note

    The buffer internally rounds up capacity to the nearest page size. To determine the actual capacity of the buffer, check the return value of capacity after initialization.

    Note

    This class is thread-safe.

    See more

    Declaration

    Swift

    public struct RingBuffer