Codec Module
Functions and values
| Function or value |
Description
|
Full Usage:
useCodec serializer (encoder, decoder)
Parameters:
MessagePackSerializer
encoder : Encoder<'T>
decoder : Decoder<'T>
Returns: MessagePackSerializer
Type parameters: 'T |
Registers an encoder and a decoder and returns a new serializer. The input serializer keeps its other settings: only the converter collection changes, with the new converter first. Decoder failures raise DecodingException, which MessagePackSerializer wraps in MessagePackSerializationException.
|
Full Usage:
useCodecWithContext serializer (encoderFactory, decoderFactory)
Parameters:
MessagePackSerializer
encoderFactory : SerializationContext -> Encoder<'T>
decoderFactory : SerializationContext -> Decoder<'T>
Returns: MessagePackSerializer
Type parameters: 'T |
Registers encoder and decoder factories that receive the active serialization context on each operation, and returns a new serializer. Decoder failures raise DecodingException, which MessagePackSerializer wraps in MessagePackSerializationException.
|
Full Usage:
useDecoder serializer decoder
Parameters:
MessagePackSerializer
decoder : Decoder<'T>
Returns: MessagePackSerializer
Type parameters: 'T |
Registers a decoder and returns a new serializer. The input serializer keeps its other settings: only the converter collection changes, with the new converter first. Decoder failures raise DecodingException, which MessagePackSerializer wraps in MessagePackSerializationException.
|
Full Usage:
useDecoderWithContext serializer decoderFactory
Parameters:
MessagePackSerializer
decoderFactory : SerializationContext -> Decoder<'T>
Returns: MessagePackSerializer
Type parameters: 'T |
Registers a decoder factory that receives the active serialization context on each operation, and returns a new serializer. Decoder failures raise DecodingException, which MessagePackSerializer wraps in MessagePackSerializationException.
|
Full Usage:
useEncoder serializer encoder
Parameters:
MessagePackSerializer
encoder : Encoder<'T>
Returns: MessagePackSerializer
Type parameters: 'T |
Registers an encoder and returns a new serializer. The input serializer keeps its other settings: only the converter collection changes, with the new converter first.
|
Full Usage:
useEncoderWithContext serializer encoderFactory
Parameters:
MessagePackSerializer
encoderFactory : SerializationContext -> Encoder<'T>
Returns: MessagePackSerializer
Type parameters: 'T |
Registers an encoder factory that receives the active serialization context on each operation, and returns a new serializer.
|
JDeck