Decoding Type
Decodes MessagePack payloads with JDeck decoders or automatic shapes. There is no fromString: MessagePack is a binary format.
Static members
| Static member |
Description
|
Full Usage:
Decoding.auto (serializer, stream)
Parameters:
MessagePackSerializer
stream : Stream
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes one value directly from the stream into 'TResult with the given serializer and the reflection shape provider.
|
Full Usage:
Decoding.auto stream
Parameters:
Stream
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes one value directly from the stream into 'TResult with the reflection shape provider.
|
Full Usage:
Decoding.auto (serializer, bytes)
Parameters:
MessagePackSerializer
bytes : byte array
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes the bytes directly into 'TResult with the given serializer and the reflection shape provider, so codecs registered with Codec drive automatic decoding. Serializer failures become DecodeError values whose value is Nil.
|
Full Usage:
Decoding.auto bytes
Parameters:
byte array
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes the bytes directly into 'TResult with the reflection shape provider. Serializer failures become DecodeError values whose value is Nil.
|
Full Usage:
Decoding.autoFromMemory (serializer, buffer)
Parameters:
MessagePackSerializer
buffer : ReadOnlyMemory<byte>
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes one value directly from the memory into 'TResult with the given serializer and the reflection shape provider.
|
Full Usage:
Decoding.autoWithShape (serializer, shape, bytes)
Parameters:
MessagePackSerializer
shape : ITypeShape<'TResult>
bytes : byte array
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes the bytes directly into 'TResult with the given serializer and shape. Serializer failures become DecodeError values whose value is Nil.
|
Full Usage:
Decoding.autoWithShape (shape, bytes)
Parameters:
ITypeShape<'TResult>
bytes : byte array
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes the bytes directly into 'TResult with the given shape. Serializer failures become DecodeError values whose value is Nil.
|
Full Usage:
Decoding.fromBytes (bytes, decoder)
Parameters:
byte array
decoder : Decoder<'TResult>
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes one MessagePackValue from the bytes, then runs the decoder on it. Serializer failures become DecodeError values whose value is Nil, since no value was decoded.
|
Full Usage:
Decoding.fromBytesCol (bytes, decoder)
Parameters:
byte array
decoder : CollectErrorsDecoder<'TResult>
Returns: Result<'TResult, DecodeError list>
Type parameters: 'TResult |
Deserializes one MessagePackValue from the bytes, then runs the collect-errors decoder on it. Serializer failures become a single-element DecodeError list whose value is Nil.
|
Full Usage:
Decoding.fromMemory (buffer, decoder)
Parameters:
ReadOnlyMemory<byte>
decoder : Decoder<'TResult>
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes one MessagePackValue from the memory, then runs the decoder.
|
Full Usage:
Decoding.fromMemoryCol (buffer, decoder)
Parameters:
ReadOnlyMemory<byte>
decoder : CollectErrorsDecoder<'TResult>
Returns: Result<'TResult, DecodeError list>
Type parameters: 'TResult |
Deserializes one MessagePackValue from the memory, then runs the collect-errors decoder.
|
Full Usage:
Decoding.fromSequence (buffer, decoder)
Parameters:
ReadOnlySequence<byte>
decoder : Decoder<'TResult>
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Deserializes one MessagePackValue from the byte sequence, then runs the decoder.
|
Full Usage:
Decoding.fromSequenceCol (buffer, decoder)
Parameters:
ReadOnlySequence<byte>
decoder : CollectErrorsDecoder<'TResult>
Returns: Result<'TResult, DecodeError list>
Type parameters: 'TResult |
Deserializes one MessagePackValue from the byte sequence, then runs the collect-errors decoder.
|
Full Usage:
Decoding.fromStream (stream, decoder)
Parameters: Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Reads one MessagePackValue from the stream, then runs the decoder. The serializer buffers the stream content before reading.
|
Full Usage:
Decoding.fromStreamCol (stream, decoder)
Parameters:
Stream
decoder : CollectErrorsDecoder<'TResult>
Returns: Result<'TResult, DecodeError list>
Type parameters: 'TResult |
Reads one MessagePackValue from the stream, then runs the collect-errors decoder.
|
Full Usage:
Decoding.fromValue (value, decoder)
Parameters:
MessagePackValue
decoder : Decoder<'TResult>
Returns: Result<'TResult, DecodeError>
Type parameters: 'TResult |
Runs the decoder on one already decoded MessagePackValue. This is the full-document entry point for values held in memory.
|
Full Usage:
Decoding.fromValueCol (value, decoder)
Parameters:
MessagePackValue
decoder : CollectErrorsDecoder<'TResult>
Returns: Result<'TResult, DecodeError list>
Type parameters: 'TResult |
Runs the collect-errors decoder on one already decoded value.
|
JDeck