Util2ReadAllT(Type, Stream, Util2ObjectHandlerProcessT, LengthProvider, MaxLengthProvider, ElementsProvider) Method

Read array of struct in stream and processes them by handler.

Definition

Namespace: Vajhoej.Record
Assembly: Record (in Record.dll) Version: 0.0.0.0
C#
public static void ReadAll<T>(
	Type t,
	Stream stm,
	Util2ObjectHandlerProcess<T> ohp,
	LengthProvider lenpvd,
	MaxLengthProvider maxlenpvd,
	ElementsProvider elmpvd
)
where T : class, new()

Parameters

t  Type
Type.
stm  Stream
Stream.
ohp  Util2ObjectHandlerProcessT
Processor of objects.
lenpvd  LengthProvider
Length provider.
maxlenpvd  MaxLengthProvider
Max length provider.
elmpvd  ElementsProvider
Element provider.

Type Parameters

T
Type.

Exceptions

RecordExceptionIf problem with record definition.
IOExceptionIf problem with stream.

See Also