Table of Contents

Method Create

Namespace
AvroSharp.Streams
Assembly
AvroSharp.dll

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

stream Stream

The destination.

write AvroWriteAction<T>

Writes one object; for a generated type, its static Write method.

options AvroStreamOptions

The stream options, or null for the defaults.

Returns

AvroStreamWriter<T>

Type Parameters

T

The 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

stream Stream

The destination.

options AvroStreamOptions

The stream options, or null for the defaults.

Returns

AvroStreamWriter<T>

Type Parameters

T

A generated type.