Method Open
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
streamStreamThe source.
readAvroReadFunc<T>Reads one object; for a generated type, its static
Readmethod.optionsAvroStreamOptionsThe stream options, or null for the defaults.
Returns
Type Parameters
TThe 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
streamStreamThe source.
optionsAvroStreamOptionsThe stream options, or null for the defaults.
Returns
Type Parameters
TA generated type.