Trait/Object

com.svenvandam.htypes.bytes

ByteCodec

Related Docs: object ByteCodec | package bytes

Permalink

trait ByteCodec[A] extends ByteDecoder[A] with ByteEncoder[A]

Type class that combines a ByteEncoder and a ByteDecoder for type A

Self Type
ByteCodec[A]
Linear Supertypes
ByteEncoder[A], Encoder[Array[Byte], A], ByteDecoder[A], Decoder[Array[Byte], A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteCodec
  2. ByteEncoder
  3. Encoder
  4. ByteDecoder
  5. Decoder
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def decode(a: Array[Byte]): Option[A]

    Permalink

    Produce a B from an A which could fail.

    Produce a B from an A which could fail.

    Definition Classes
    Decoder
  2. abstract def encode(b: A): Array[Byte]

    Permalink

    Produce an A from a B.

    Produce an A from a B.

    Definition Classes
    Encoder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def contramap[B](f: (B) ⇒ A): ByteEncoder[B]

    Permalink

    Create a new ByteEncoder for type B by applying a function to a value of type B before encoding as an A.

    Create a new ByteEncoder for type B by applying a function to a value of type B before encoding as an A.

    Definition Classes
    ByteEncoder
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def flatMap[B](f: (A) ⇒ Option[B]): ByteDecoder[B]

    Permalink

    Create a new ByteDecoder for type B by applying a function which might fail to a value of type A after decoding.

    Create a new ByteDecoder for type B by applying a function which might fail to a value of type A after decoding.

    Definition Classes
    ByteDecoder
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def iflatMap[B](f: (B) ⇒ A, g: (A) ⇒ Option[B]): ByteCodec[B]

    Permalink

    Create a new ByteCodec by flatMapping the ByteDecoder and contramapping the ByteEncoder to type B

  14. def imap[B](f: (B) ⇒ A, g: (A) ⇒ B): ByteCodec[B]

    Permalink

    Create a new ByteCodec by mapping the ByteDecoder and contramapping the ByteEncoder to type B

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def map[B](f: (A) ⇒ B): ByteDecoder[B]

    Permalink

    Create a new ByteDecoder for type B by applying a function to a value of type A after decoding.

    Create a new ByteDecoder for type B by applying a function to a value of type A after decoding.

    Definition Classes
    ByteDecoder
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ByteEncoder[A]

Inherited from Encoder[Array[Byte], A]

Inherited from ByteDecoder[A]

Inherited from Decoder[Array[Byte], A]

Inherited from AnyRef

Inherited from Any

Ungrouped