ArrayBuilder

zio.blocks.schema.binding.SeqConstructor.ArrayBuilder
class ArrayBuilder[A](var buffer: Array[A], var size: Int, val ct: ClassTag[A])

The builder of the array-backed constructors: the first size elements of buffer are the ones added so far. When buffer is full, adding an element replaces it with a copy of twice the length. ct creates arrays of the element type.

Attributes

Source
SeqConstructor.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete fields

var buffer: Array[A]

Attributes

Source
SeqConstructor.scala
val ct: ClassTag[A]

Attributes

Source
SeqConstructor.scala
var size: Int

Attributes

Source
SeqConstructor.scala