class

Scroll::Progress::Counters

Inherits Reference < Object

Byte and line totals, written by the pump and read by the render fiber. Atomic because those are separate fibers, which the scheduler may place on separate threads.

Constructors

Class methods

newlines(slice : Bytes) : Int32

Newlines in a chunk. On the hot path, so it walks the slice rather than materializing a String.

Source

Instance methods

add(bytes : Int32, lines : Int32) : Nil
Source
bytes
Source
lines
Source