Method Create
Create<T>(Stream, AvroWriteAction<T>, AvroStreamOptions?)
Creates a writer of objects one after another in the binary encoding, with no container or framing.
public static AvroStreamWriter<T> Create<T>(Stream stream, AvroWriteAction<T> write, AvroStreamOptions? options = null)
Parameters
streamStreamThe destination.
writeAvroWriteAction<T>Writes one object; for a generated type, its static
Writemethod.optionsAvroStreamOptionsThe stream options, or null for the defaults.
Returns
Type Parameters
TThe type of the objects.
Create<T>(Stream, AvroStreamOptions?)
Creates a writer of objects of a generated type, one after another.
public static AvroStreamWriter<T> Create<T>(Stream stream, AvroStreamOptions? options = null) where T : IAvroSerializable<T>
Parameters
streamStreamThe destination.
optionsAvroStreamOptionsThe stream options, or null for the defaults.
Returns
Type Parameters
TA generated type.