Table of Contents

Method Open

Namespace
AvroSharp.Streams
Assembly
AvroSharp.dll

Open<T>(Stream, AvroReadFunc<T>, AvroStreamOptions?)

Creates a reader of the objects in a stream, each in the binary encoding of one schema, one after another.

public static AvroStreamReader<T> Open<T>(Stream stream, AvroReadFunc<T> read, AvroStreamOptions? options = null)

Parameters

stream Stream

The source.

read AvroReadFunc<T>

Reads one object; for a generated type, its static Read method.

options AvroStreamOptions

The stream options, or null for the defaults.

Returns

AvroStreamReader<T>

Type Parameters

T

The type of the objects.

Open<T>(Stream, AvroStreamOptions?)

Creates a reader of the objects of a generated type in a stream, one after another.

public static AvroStreamReader<T> Open<T>(Stream stream, AvroStreamOptions? options = null) where T : IAvroSerializable<T>

Parameters

stream Stream

The source.

options AvroStreamOptions

The stream options, or null for the defaults.

Returns

AvroStreamReader<T>

Type Parameters

T

A generated type.