trait ReadWrite[T] extends Read[T] with Write[T]
Type class for data serialization from / to the ByteReaderWriter
- T
type to be serialized
- Self Type
- ReadWrite[T]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ReadWrite
- Write
- Read
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def read[B](buf: B)(implicit arg0: ByteReaderWriter[B]): T
Deserialize data from buffer
Deserialize data from buffer
- Definition Classes
- Read
- abstract def write[B](buf: B, t: T)(implicit arg0: ByteReaderWriter[B]): Unit
Serialize data into buffer
Serialize data into buffer
- Definition Classes
- Write
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def imap[A](to: (T) => A)(from: (A) => T): ReadWrite[A]
Creates a ReadWrite instance for type A from the instance for type T
Creates a ReadWrite instance for type A from the instance for type T
- A
a new type
- to
wraps instance of T into A
- from
extracts instance of T from A
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[A](from: (A) => T): Write[A]
- Definition Classes
- Write
- def map[A](to: (T) => A): Read[A]
- Definition Classes
- Read
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)