Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait CodecAPIclass Objecttrait Matchableclass Any
- Known subtypes
-
class JsonCodecsclass codecs
Members list
Value members
Concrete methods
Turns a Schema into this API's preferred representation.
Turns a Schema into this API's preferred representation.
Value parameters
- cache
-
a Cache that can be used to optimise the compilation of Schemas into Codecs.
- schema
-
the value's schema
Attributes
- Returns
-
the codec associated to the A value.
Decodes partial data from a byte array
Decodes partial data from a byte array
Value parameters
- bytes
-
an byte array
- codec
-
the implementation-specific codec type
Attributes
- Returns
-
either a PayloadError, or the partial data, which can be combined with partial data coming from the metadata.
- Definition Classes
-
CodecAPI
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 parameters
- bytes
-
a bytue buffer
- codec
-
the implementation-specific codec
Attributes
- Returns
-
either a PayloadError, or the partial data, which can be combined with partial data coming from the metadata.
- Definition Classes
-
CodecAPI
Writes data to a byte array. Field values bound to http metadata (path/query/headers) must be eluded.
Writes data to a byte array. Field values bound to http metadata (path/query/headers) must be eluded.
Value parameters
- codec
-
the implementation-specific codec
- value
-
the value to encode
Attributes
- Definition Classes
-
CodecAPI
Inherited methods
Turns a Schema into this API's preferred representation.
Turns a Schema into this API's preferred representation.
Value parameters
- schema
-
the value's schema
Attributes
- Returns
-
the codec associated to the A value.
- Inherited from:
- CodecAPI
Attributes
- Inherited from:
- CodecAPI
Attributes
- Inherited from:
- CodecAPI
Attributes
- Inherited from:
- CodecAPI