MBrace.Core


SerializationClient

Namespace: MBrace.Core.Internals

Collection of Serialization utilities.

Constructors

ConstructorDescription
new(serializer, textSerializer)
Signature: (serializer:ISerializer * textSerializer:ITextSerializer option) -> SerializationClient

CompiledName: .ctor

Instance members

Instance memberDescription
Clone(graph)
Signature: graph:'T -> 'T
Type parameters: 'T

Creates an in-memory clone of supplied serializable object graph.

ComputeObjectSize(graph)
Signature: graph:'T -> int64
Type parameters: 'T

Quickly computes the size of a serializable object graph in bytes.

Deserialize(stream, leaveOpen)
Signature: (stream:Stream * leaveOpen:bool option) -> 'T
Type parameters: 'T

Deserializes provided object graph from underlying read stream.

Id
Signature: string

CompiledName: get_Id

Pickle(graph)
Signature: graph:'T -> byte []
Type parameters: 'T

Serializes provided object graph to byte array.

PickleToString(graph)
Signature: graph:'T -> string
Type parameters: 'T

Serializes provided object graph to string.

Serialize(stream, graph, leaveOpen)
Signature: (stream:Stream * graph:'T * leaveOpen:bool option) -> unit
Type parameters: 'T

Serializes provided object graph to underlying write stream.

Serializer
Signature: ISerializer

CompiledName: get_Serializer

TextDeserialize(source, leaveOpen)
Signature: (source:TextReader * leaveOpen:bool option) -> LocalCloud<'T>
Type parameters: 'T

Deserializes object graph from underlying text reader.

TextSerialize(target, graph, leaveOpen)
Signature: (target:TextWriter * graph:'T * leaveOpen:bool option) -> unit
Type parameters: 'T

Serializes provided object graph to underlying text writer.

TextSerializer
Signature: ITextSerializer option

CompiledName: get_TextSerializer

UnPickle(pickle)
Signature: (pickle:byte []) -> 'T
Type parameters: 'T

Deserializes object from given byte array pickle.

UnPickleOfString(pickle)
Signature: pickle:string -> 'T
Type parameters: 'T

Deserializes object from given string pickle.

Static members

Static memberDescription
Create(resources)
Signature: resources:ResourceRegistry -> SerializationClient

Creates a Serializer client by resolving the local execution context.

Fork me on GitHub