RingBufferError

public enum RingBufferError: Swift.Error

Represents an error that occurs while using a RingBuffer

  • There is insufficient space in the buffer

    • requested: The amount of space that was requested
    • available: The number of bytes that are available

    Declaration

    Swift

    case insufficientSpace(requested: Int, available: Int)
  • There is insufficient data in the buffer

    • requested: The amount of space that was requested
    • available: The number of bytes that are available

    Declaration

    Swift

    case insufficientData(requested: Int, available: Int)
  • Represents an internal error. Please pass a helpful message.

    Declaration

    Swift

    case `internal`(String)