An abstraction exposing serialisation functions to decode from bytes / encode to bytes, based on a path-dependant Codec types.
Only used in unary request/response patterns.
- Companion
- object
Type members
Types
Value members
Abstract methods
Turns a Schema into this API's preferred representation.
Turns a Schema into this API's preferred representation.
- Value Params
- schema
the value's schema
- Returns
the codec associated to the A value.
Decodes partial data from a byte array
Decodes partial data from a byte array
- Value Params
- bytes
an byte array
- codec
the implementation-specific codec type
- Returns
either a PayloadError, or the partial data, which can be combined with partial data coming from the metadata.
Decodes partial data from a byte buffer, returning a function that is able to reconstruct the full data, provided a map resulting from the decoding of the metadata.
Decodes partial data from a byte buffer, returning a function that is able to reconstruct the full data, provided a map resulting from the decoding of the metadata.
- Value Params
- bytes
a bytue buffer
- codec
the implementation-specific codec
- Returns
either a PayloadError, or the partial data, which can be combined with partial data coming from the metadata.