LengthEncoded

sbinary.Generic.LengthEncoded
abstract class LengthEncoded[S <: Iterable[T], T](implicit binT: Format[T]) extends CollectionFormat[S, T]

Format instance which encodes the collection by first writing the length of the collection as an int, then writing the collection elements in order.

Attributes

Graph
Supertypes
class CollectionFormat[S, T]
trait Format[S]
trait Writes[S]
trait Reads[S]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def foreach(s: S)(f: T => Unit): Unit
def size(s: S): Int

Inherited methods

def build(size: Int, ts: Iterator[T]): S

Attributes

Inherited from:
CollectionFormat
def reads(in: Input): S

Attributes

Inherited from:
CollectionFormat
def writes(out: Output, ts: S): Unit

Attributes

Inherited from:
CollectionFormat