Packages

object codec

Source
codec.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. codec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class ByteVectorCodecSyntax extends AnyVal

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. lazy val bitsWsRemoved: Codec[BitVector]
  6. lazy val boolAsString: Codec[Boolean]
  7. def bytesUntil(f: (Byte) ⇒ Boolean): Codec[ByteVector]

    Decodes bytes util f holds.

    Decodes bytes util f holds. Encodes as identity

  8. lazy val bytesWsRemoved: Codec[ByteVector]
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def duration[N](units: TimeUnit, mkN: (Double) ⇒ N)(codec: Codec[N])(implicit N: Numeric[N]): Codec[FiniteDuration]

    creates duration from specified units *

  11. def durationIntMs(codec: Codec[Int]): Codec[FiniteDuration]

    encodes duration in Ms for Int *

  12. val epochTimestamp: Codec[Date]

    encodes as ms since epoch *

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. lazy val floatAsString: Codec[Float]

    Float encoded as string value

  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  19. lazy val intAsString: Codec[Int]

    Int encoded as string value

  20. def intBounded(codec: Codec[Int])(min: Int, max: Int): Codec[Int]

    int codec, that allows min/max bounds inclusive *

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. lazy val longAsString: Codec[Long]

    Int encoded as string value

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. def predicate[A](c: Codec[A])(f: (A) ⇒ Option[String]): Codec[A]

    Applies predicate f to check whether A was decoded successfully, or may be encoded.

    Applies predicate f to check whether A was decoded successfully, or may be encoded. If f yields to String, then this signals failure

  27. def stringBounded(codec: Codec[String])(min: Int, max: Int): Codec[String]

    string codec, that allows min/max bounds on size inclusive *

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def takeWhile[A](discriminator: ByteVector, encodingDiscriminator: ByteVector, codec: Codec[A], maxLength: Int = Int.MaxValue): Codec[A]

    A codec that takes all bytes until discriminator is found.

    A codec that takes all bytes until discriminator is found. Then codec is applied to get A Remainder AFTER discriminator is returned

  30. def terminatedBy[A](delimiter: ByteVector, encDelimiter: ByteVector, codec: Codec[A]): Codec[A]

    Decodes bytes that are terminated by supplied byte, and then applies codec on bytes decoded differs from codec ~ delimiter so the delimiter is scanned first and then codec is applied.

    Decodes bytes that are terminated by supplied byte, and then applies codec on bytes decoded differs from codec ~ delimiter so the delimiter is scanned first and then codec is applied.

    The delimiter is not part of any remainder returned when decoding.

    instead using delimiter to encode, encDelimiter is used.

  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def xor[A](codec: Codec[A], or: BitVector): Codec[A]

    Performs Xor operation of codec with or

Inherited from AnyRef

Inherited from Any

Ungrouped