CheckpointRestoreExtensionMethodsRestoreArrayTElement Method Naiad Help

[This is preliminary documentation and is subject to change.]

Reads an array from the given reader.

Namespace: Microsoft.Research.Naiad.Serialization
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
public static TElement[] RestoreArray<TElement>(
	NaiadReader reader,
	Func<int, TElement[]> allocator
)

Parameters

reader
Type: Microsoft.Research.Naiad.SerializationNaiadReader
The reader.
allocator
Type: SystemFuncInt32, TElement
An allocator function that allocates an array with at least as many elements as its argument.

Type Parameters

TElement
The type of elements in the array.

Return Value

Type: TElement
The array.
See Also

Reference