Table of Contents

Method Write

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

Write<T>(IBufferWriter<byte>, AvroRegistryFraming, AvroSchemaId, T, AvroWriteAction<T>)

Writes one object as a framed message.

public static void Write<T>(IBufferWriter<byte> output, AvroRegistryFraming framing, AvroSchemaId id, T value, AvroWriteAction<T> write)

Parameters

output IBufferWriter<byte>

The destination.

framing AvroRegistryFraming

The registry's framing.

id AvroSchemaId

The schema ID the registry assigned to the writer schema.

value T

The object.

write AvroWriteAction<T>

Writes the object in the writer schema's encoding; for a generated type, its static Write method.

Type Parameters

T

The type of the object.

Write(IBufferWriter<byte>, AvroRegistryFraming, AvroSchemaId, in AvroValue, GenericDatumWriter)

Writes a generic value as a framed message.

public static void Write(IBufferWriter<byte> output, AvroRegistryFraming framing, AvroSchemaId id, in AvroValue value, GenericDatumWriter writer)

Parameters

output IBufferWriter<byte>

The destination.

framing AvroRegistryFraming

The registry's framing.

id AvroSchemaId

The schema ID the registry assigned to the writer's schema.

value AvroValue

The value.

writer GenericDatumWriter

The generic writer for the schema.

Write<T>(IBufferWriter<byte>, AvroRegistryFraming, AvroSchemaId, T)

Writes a schema-registry message of a generated type.

public static void Write<T>(IBufferWriter<byte> output, AvroRegistryFraming framing, AvroSchemaId id, T value) where T : IAvroSerializable<T>

Parameters

output IBufferWriter<byte>

The destination.

framing AvroRegistryFraming

The message framing.

id AvroSchemaId

The schema's ID in the registry.

value T

The value.

Type Parameters

T

A generated type.