Instance Methodswift-nio 2.72.0NIOCore
popFirst
MarkedCircularBuffer.swift:49mutating func popFirst() -> Element?
Other members in extension
Typealiases
Type members
init(initialCapacity: Int
) Create a new instance.
Instance members
var count: Int
The number of elements in the buffer.
var description: String
var endIndex: Index
var first: Element?
The first element in the buffer.
var hasMark: Bool
Returns true if the buffer has been marked at all.
var isEmpty: Bool
If the buffer is empty.
var markedElement: Element?
Returns the marked element.
var markedElementIndex: Index?
Returns the index of the marked element.
var startIndex: Index
subscript(Range<Index>
) -> SubSequence subscript(Index
) -> Element Retrieves the element at the given index from the buffer, without removing it.
func append(Element
) Appends an entry to the buffer, expanding it if needed.
func distance(from: Index, to: Index
) -> Int func index(Index, offsetBy: Int
) -> Index func index(after: Index
) -> Index func index(before: Index
) -> Index func isMarked(index: Index
) -> Bool Returns true if the buffer is currently marked at the given index.
func mark(
) Marks the buffer at the current index, making the last index in the buffer marked.
func removeFirst(
) -> Element Removes the first element from the buffer.