DelegatingCodecAPI
Value members
Concrete methods
def decodeFromByteArrayPartial[A](codec: Codec[A], bytes: Array[Byte]): Either[PayloadError, BodyPartial[A]]
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
- Returns:
either a PayloadError, or the partial data, which can be combined with partial data coming from the metadata.
def decodeFromByteBufferPartial[A](codec: Codec[A], bytes: ByteBuffer): Either[PayloadError, BodyPartial[A]]
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
- Returns:
either a PayloadError, or the partial data, which can be combined with partial data coming from the metadata.