FsPickler


FsPicklerTextSerializer

Namespace: MBrace.FsPickler
Attributes:
[<AbstractClass>]

An abstract class containing the text-based serialization API.

Constructors

ConstructorDescription
new(...)
Signature: (formatProvider:ITextPickleFormatProvider * typeConverter:ITypeNameConverter option * picklerResolver:IPicklerResolver option) -> FsPicklerTextSerializer

CompiledName: .ctor

Instance members

Instance memberDescription
x.Deserialize(...)
Signature: (reader:TextReader * pickler:Pickler<'T> option * streamingContext:StreamingContext option * leaveOpen:bool option) -> 'T
Type parameters: 'T

Deserialize value of given type from the underlying stream.

x.DeserializeSequence(...)
Signature: (reader:TextReader * pickler:Pickler<'T> option * streamingContext:StreamingContext option * leaveOpen:bool option) -> seq<'T>
Type parameters: 'T

Lazily deserialize a sequence of objects from the underlying stream.

x.DeserializeSequenceUntyped(...)
Signature: (reader:TextReader * pickler:Pickler * streamingContext:StreamingContext option * leaveOpen:bool option) -> IEnumerable

Lazily deserialize a sequence of objects from the underlying stream.

x.DeserializeSifted(...)
Signature: (reader:TextReader * sifted:(int64 * obj) [] * pickler:Pickler<'T> option * streamingContext:StreamingContext option * leaveOpen:bool option) -> 'T
Type parameters: 'T

Deserializes a sifted value from stream, filling in sifted holes from the serialized using supplied objects.

x.DeserializeUntyped(...)
Signature: (reader:TextReader * pickler:Pickler * streamingContext:StreamingContext option * leaveOpen:bool option) -> obj

Deserialize object of given type from the underlying stream.

x.PickleToString(...)
Signature: (value:'T * pickler:Pickler<'T> option * streamingContext:StreamingContext option) -> string
Type parameters: 'T

Pickles given value to string.

x.PickleToStringSifted(...)
Signature: (value:'T * sifter:IObjectSifter * pickler:Pickler<'T> option * streamingContext:StreamingContext option) -> string * (int64 * obj) []
Type parameters: 'T

Pickles value to string, excluding objects mandated by the provided IObjectSifter instance. Values excluded from serialization will be returned tagged by their ids. Sifted objects will have to be provided on deserialization along with their accompanying id's.

x.PickleToStringUntyped(...)
Signature: (value:obj * pickler:Pickler * streamingContext:StreamingContext option) -> string

Pickles given value to string using provided pickler.

x.Serialize(...)
Signature: (writer:TextWriter * value:'T * pickler:Pickler<'T> option * streamingContext:StreamingContext option * leaveOpen:bool option) -> unit
Type parameters: 'T

Serialize value to the underlying writer.

x.SerializeSequence(...)
Signature: (writer:TextWriter * sequence:seq<'T> * pickler:Pickler<'T> option * streamingContext:StreamingContext option * leaveOpen:bool option) -> int
Type parameters: 'T

Evaluates and serializes a sequence of objects to the underlying stream.

x.SerializeSequenceUntyped(...)
Signature: (writer:TextWriter * sequence:IEnumerable * pickler:Pickler * streamingContext:StreamingContext option * leaveOpen:bool option) -> int

Evaluate and serialize a sequence of objects to the underlying stream.

x.SerializeSifted(...)
Signature: (writer:TextWriter * value:'T * sifter:IObjectSifter * pickler:Pickler<'T> option * streamingContext:StreamingContext option * leaveOpen:bool option) -> (int64 * obj) []
Type parameters: 'T

Serializes a value to text writer, excluding values mandated by the provided IObjectSifter instance. Values excluded from serialization will be returned tagged by their ids.

x.SerializeUntyped(...)
Signature: (writer:TextWriter * value:obj * pickler:Pickler * streamingContext:StreamingContext option * leaveOpen:bool option) -> unit

Serialize object of given type to the underlying stream.

x.UnPickleOfString(...)
Signature: (pickle:string * pickler:Pickler<'T> option * streamingContext:StreamingContext option) -> 'T
Type parameters: 'T

Unpickles value from string.

x.UnPickleOfStringSifted(...)
Signature: (pickle:string * sifted:(int64 * obj) [] * pickler:Pickler<'T> option * streamingContext:StreamingContext option) -> 'T
Type parameters: 'T

Unpickles a sifted value, filling in sifted holes from the serialized using supplied objects.

x.UnPickleOfStringUntyped(...)
Signature: (pickle:string * pickler:Pickler * streamingContext:StreamingContext option) -> obj

Unpickle using provided pickler.

Fork me on GitHub