zio.blocks.streams.internal

Members list

Type members

Classlikes

object OpTag

Attributes

Source
OpTag.scala
Supertypes
class Object
trait Matchable
class Any
Self type
OpTag.type
final class StreamError extends Exception

Wraps a non-Throwable error value so it can propagate through the Reader/SyncInterpreter stack via exceptions. Used by zio.blocks.streams.Stream.fail and caught by zio.blocks.streams.Stream.run. The 4th constructor arg (writableStackTrace=false) disables stack trace capture for performance.

Wraps a non-Throwable error value so it can propagate through the Reader/SyncInterpreter stack via exceptions. Used by zio.blocks.streams.Stream.fail and caught by zio.blocks.streams.Stream.run. The 4th constructor arg (writableStackTrace=false) disables stack trace capture for performance.

Attributes

Source
StreamError.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object StreamState

Attributes

Source
StreamState.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class SyncInterpreter extends SyncReader[Any]

An optimized interpreter that compiles a chain of stream operations (map, filter, flatMap, source reads) into a flat-array representation for efficient dispatch. This is the fallback compilation strategy for deep pipelines (beyond Stream.DepthCutoff) and is used by SyncInterpreter.fromStream.

An optimized interpreter that compiles a chain of stream operations (map, filter, flatMap, source reads) into a flat-array representation for efficient dispatch. This is the fallback compilation strategy for deep pipelines (beyond Stream.DepthCutoff) and is used by SyncInterpreter.fromStream.

Internally, each op is a (Long, AnyRef) pair stored at the same index in two parallel arrays. The Long's bottom 8 bits hold the OpTag; the upper 56 bits hold StreamState for Read/Push ops.

Attributes

Source
SyncInterpreter.scala
Supertypes
class SyncReader[Any]
class Reader[Any]
class Object
trait Matchable
class Any

Types

type Lane = Int

SyncInterpreter storage lane index (0=Int, 1=Long, 2=Float, 3=Double, 4=Ref).

SyncInterpreter storage lane index (0=Int, 1=Long, 2=Float, 3=Double, 4=Ref).

Attributes

Source
package.scala
type OpTag = Int

Operation tag for the SyncInterpreter (8-bit value).

Operation tag for the SyncInterpreter (8-bit value).

Attributes

Source
package.scala
type StreamState = Long

Packed interpreter state in a single Long (56 bits used).

Packed interpreter state in a single Long (56 bits used).

Attributes

Source
package.scala