Searched refs:withState (Results 1 – 1 of 1) sorted by relevance
94 val isEmpty: Boolean get() = _state.value.withState { head, tail -> head == tail } in head()95 … val size: Int get() = _state.value.withState { head, tail -> (tail - head) and MAX_CAPACITY_MASK } in head()110 state.withState { head, tail -> in addLast()173 state.withState { head, tail -> in removeFirstOrNullIf()209 state.withState { head, _ -> in removeSlowPath()240 state.withState { head, tail -> in allocateNextCopy()256 _state.value.withState { head, tail -> in map()307 inline fun <T> Long.withState(block: (head: Int, tail: Int) -> T): T { in isClosed() method