Method Write
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
outputIBufferWriter<byte>The destination.
framingAvroRegistryFramingThe registry's framing.
idAvroSchemaIdThe schema ID the registry assigned to the writer schema.
valueTThe object.
writeAvroWriteAction<T>Writes the object in the writer schema's encoding; for a generated type, its static
Writemethod.
Type Parameters
TThe 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
outputIBufferWriter<byte>The destination.
framingAvroRegistryFramingThe registry's framing.
idAvroSchemaIdThe schema ID the registry assigned to the writer's schema.
valueAvroValueThe value.
writerGenericDatumWriterThe 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
outputIBufferWriter<byte>The destination.
framingAvroRegistryFramingThe message framing.
idAvroSchemaIdThe schema's ID in the registry.
valueTThe value.
Type Parameters
TA generated type.