Serde
A type class to serialize/deserialize instance of type A.
Type parameters
- A
-
The type to serialize/deserialize.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object BytesSerdeclass StringSerde
Members list
Value members
Abstract methods
Deserialize the bytes data in Buffer to instance of type A
Deserialize the bytes data in Buffer to instance of type A
Value parameters
- in
-
The input Buffer.
Attributes
- Returns
-
Instance of type A.
Concrete methods
Check that there is enough data in the buffer to deserialize.
Check that there is enough data in the buffer to deserialize.
Value parameters
- in
-
The input Buffer.
Attributes
- Returns
-
true
if has enough data, or elsefalse
.
Deserialize the bytes data in Buffer to instance of type A, but return erased instance of type Any.
Deserialize the bytes data in Buffer to instance of type A, but return erased instance of type Any.
Value parameters
- in
-
The input Buffer.
Attributes
- Returns
-
Instance of type Any.
Serialize instance of type A which is erased type to Any into Buffer.
Serialize instance of type A which is erased type to Any into Buffer.
Value parameters
- out
-
Output Buffer.
- value
-
Instance of type A which is erased type to Any.