trait GenObjectCodec[T] extends GenCodec[T]
Subtype of GenCodec which captures serialization to an "object", i.e. through ObjectOutput and ObjectInput.
- Annotations
- @implicitNotFound( "No GenObjectCodec found for ${T}" )
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- GenObjectCodec
- GenCodec
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def readObject(input: ObjectInput): T
- abstract def writeObject(output: ObjectOutput, value: T): Unit
Concrete Value Members
-
def
read(input: Input): T
Deserializes a value of type
T
from an Input.Deserializes a value of type
T
from an Input.- Definition Classes
- GenObjectCodec → GenCodec
-
final
def
transform[U](onWrite: (U) ⇒ T, onRead: (T) ⇒ U): GenCodec[U]
Transforms this codec into a codec of other type using a bidirectional conversion between the original and new type.
Transforms this codec into a codec of other type using a bidirectional conversion between the original and new type.
- Definition Classes
- GenCodec
-
def
write(output: Output, value: T): Unit
Serializes a value of type
T
into an Output.Serializes a value of type
T
into an Output.- Definition Classes
- GenObjectCodec → GenCodec