sbinary

Generic

trait Generic extends CoreProtocol

Linear Supertypes
CoreProtocol, Protocol, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Generic
  2. CoreProtocol
  3. Protocol
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Type Members

  1. class CollectionFormat [S, T] extends Format[S]

    A more general LengthEncoded (arrays are no longer collections)

  2. class LengthEncoded [S <: Traversable[T], 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.

  3. case class Summand [T] (clazz: Class[_], format: Format[T]) extends Product with Serializable

Abstract Value Members

  1. implicit val BooleanFormat : Format[Boolean]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  2. implicit val CharFormat : Format[Char]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  3. implicit val DoubleFormat : Format[Double]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  4. implicit val FloatFormat : Format[Float]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  5. implicit val IntFormat : Format[Int]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  6. implicit val LongFormat : Format[Long]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  7. implicit val ShortFormat : Format[Short]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  8. implicit val StringFormat : Format[String]

    Attributes
    implicit abstract
    Definition Classes
    CoreProtocol
  9. implicit def arrayFormat [T] (implicit fmt: Format[T], mf: Manifest[T]): Format[Array[T]]

    Attributes
    implicit abstract
  10. implicit def listFormat [T] (implicit fmt: Format[T]): Format[List[T]]

    Attributes
    implicit abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object ByteFormat extends Format[Byte]

    Attributes
    implicit
  7. object UnitFormat extends Format[Unit]

    Attributes
    implicit
  8. implicit def anyToSummand [T] (t: T): Summand[T]

    Attributes
    implicit
  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def asProduct2 [S, T1, T2] (apply: (T1, T2) ⇒ S)(unapply: (S) ⇒ Product2[T1, T2])(implicit bin1: Format[T1], bin2: Format[T2]): Format[S]

    Represents this type as 2 consecutive binary blocks of type T1.

    Represents this type as 2 consecutive binary blocks of type T1..T2, relative to the specified way of decomposing and composing S as such.

  11. def asProduct3 [S, T1, T2, T3] (apply: (T1, T2, T3) ⇒ S)(unapply: (S) ⇒ Product3[T1, T2, T3])(implicit bin1: Format[T1], bin2: Format[T2], bin3: Format[T3]): Format[S]

    Represents this type as 3 consecutive binary blocks of type T1.

    Represents this type as 3 consecutive binary blocks of type T1..T3, relative to the specified way of decomposing and composing S as such.

  12. def asProduct4 [S, T1, T2, T3, T4] (apply: (T1, T2, T3, T4) ⇒ S)(unapply: (S) ⇒ Product4[T1, T2, T3, T4])(implicit bin1: Format[T1], bin2: Format[T2], bin3: Format[T3], bin4: Format[T4]): Format[S]

    Represents this type as 4 consecutive binary blocks of type T1.

    Represents this type as 4 consecutive binary blocks of type T1..T4, relative to the specified way of decomposing and composing S as such.

  13. def asProduct5 [S, T1, T2, T3, T4, T5] (apply: (T1, T2, T3, T4, T5) ⇒ S)(unapply: (S) ⇒ Product5[T1, T2, T3, T4, T5])(implicit bin1: Format[T1], bin2: Format[T2], bin3: Format[T3], bin4: Format[T4], bin5: Format[T5]): Format[S]

    Represents this type as 5 consecutive binary blocks of type T1.

    Represents this type as 5 consecutive binary blocks of type T1..T5, relative to the specified way of decomposing and composing S as such.

  14. def asProduct6 [S, T1, T2, T3, T4, T5, T6] (apply: (T1, T2, T3, T4, T5, T6) ⇒ S)(unapply: (S) ⇒ Product6[T1, T2, T3, T4, T5, T6])(implicit bin1: Format[T1], bin2: Format[T2], bin3: Format[T3], bin4: Format[T4], bin5: Format[T5], bin6: Format[T6]): Format[S]

    Represents this type as 6 consecutive binary blocks of type T1.

    Represents this type as 6 consecutive binary blocks of type T1..T6, relative to the specified way of decomposing and composing S as such.

  15. def asProduct7 [S, T1, T2, T3, T4, T5, T6, T7] (apply: (T1, T2, T3, T4, T5, T6, T7) ⇒ S)(unapply: (S) ⇒ Product7[T1, T2, T3, T4, T5, T6, T7])(implicit bin1: Format[T1], bin2: Format[T2], bin3: Format[T3], bin4: Format[T4], bin5: Format[T5], bin6: Format[T6], bin7: Format[T7]): Format[S]

    Represents this type as 7 consecutive binary blocks of type T1.

    Represents this type as 7 consecutive binary blocks of type T1..T7, relative to the specified way of decomposing and composing S as such.

  16. def asProduct8 [S, T1, T2, T3, T4, T5, T6, T7, T8] (apply: (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ S)(unapply: (S) ⇒ Product8[T1, T2, T3, T4, T5, T6, T7, T8])(implicit bin1: Format[T1], bin2: Format[T2], bin3: Format[T3], bin4: Format[T4], bin5: Format[T5], bin6: Format[T6], bin7: Format[T7], bin8: Format[T8]): Format[S]

    Represents this type as 8 consecutive binary blocks of type T1.

    Represents this type as 8 consecutive binary blocks of type T1..T8, relative to the specified way of decomposing and composing S as such.

  17. def asProduct9 [S, T1, T2, T3, T4, T5, T6, T7, T8, T9] (apply: (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ S)(unapply: (S) ⇒ Product9[T1, T2, T3, T4, T5, T6, T7, T8, T9])(implicit bin1: Format[T1], bin2: Format[T2], bin3: Format[T3], bin4: Format[T4], bin5: Format[T5], bin6: Format[T6], bin7: Format[T7], bin8: Format[T8], bin9: Format[T9]): Format[S]

    Represents this type as 9 consecutive binary blocks of type T1.

    Represents this type as 9 consecutive binary blocks of type T1..T9, relative to the specified way of decomposing and composing S as such.

  18. def asSingleton [T] (t: T): Format[T]

    Trivial serialization.

    Trivial serialization. Writing is a no-op, reading always returns this instance.

  19. def asUnion [S] (summands: Generic.this.Summand[_ <: S]*): Format[S]

    Uses a single tag byte to represent S as a union of subtypes.

  20. implicit def classToSummand [T] (clazz: Class[T])(implicit bin: Format[T]): Summand[T]

    Attributes
    implicit
  21. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def enumerationFormat [V <: Value] (enumeration: Enumeration): Format[V]

    Create a format for an enumeration, representing values by their integer IDs.

    Create a format for an enumeration, representing values by their integer IDs.

    Note that due to type system limitations we cannot enforce that you pass the right Enumeration to this method. Be good.

  23. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  25. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. implicit def formatToSummand [T] (format: Format[T])(implicit mf: Manifest[T]): Summand[T]

    Attributes
    implicit
  27. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  28. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  29. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  30. def lazyFormat [S] (bin: ⇒ Format[S]): Format[S] { lazy val delegate: sbinary.Format[S] }

    Lazy wrapper around a binary.

    Lazy wrapper around a binary. Useful when you want e.g. mutually recursive binary instances.

  31. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  34. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  35. def toString (): String

    Definition Classes
    AnyRef → Any
  36. def viaArray [S <: Traversable[T], T] (f: (Array[T]) ⇒ S)(implicit binary: Format[T], mf: Manifest[T]): Format[S]

    Length encodes, but with the result built from an array.

  37. def viaSeq [S <: Traversable[T], T] (f: (Seq[T]) ⇒ S)(implicit binary: Format[T]): Format[S]

    Length encodes, but with the result built from a Seq.

    Length encodes, but with the result built from a Seq. Useful for when a ClassManifest is not available the underlying type T.

  38. def viaString [T] (f: (String) ⇒ T): Format[T]

    Encodes and decodes via some String representation.

  39. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def withStamp [S, T] (stamp: S)(binary: Format[T])(implicit binS: Format[S]): Format[T]

    Attaches a stamp to the data.

    Attaches a stamp to the data. This stamp is placed at the beginning of the format and may be used to verify the integrity of the data (e.g. a magic number for the data format version).

  43. def wrap [S, T] (to: (S) ⇒ T, from: (T) ⇒ S)(implicit bin: Format[T]): Format[S]

    Serializes this via a bijection to some other type.

Inherited from CoreProtocol

Inherited from Protocol

Inherited from AnyRef

Inherited from Any