Class Serializers
Serializers for use with Producer<TKey, TValue>.
Inherited Members
Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public static class Serializers
Fields
ByteArray
System.Byte[] (nullable) serializer.
Declaration
public static ISerializer<byte[]> ByteArray
Field Value
Type | Description |
---|---|
ISerializer<byte[]> |
Remarks
Byte order is original order.
Double
System.Double (big endian, network byte order) serializer
Declaration
public static ISerializer<double> Double
Field Value
Type | Description |
---|---|
ISerializer<double> |
Int32
System.Int32 (big endian, network byte order) serializer.
Declaration
public static ISerializer<int> Int32
Field Value
Type | Description |
---|---|
ISerializer<int> |
Int64
System.Int64 (big endian, network byte order) serializer.
Declaration
public static ISerializer<long> Int64
Field Value
Type | Description |
---|---|
ISerializer<long> |
Null
Null serializer.
Declaration
public static ISerializer<Null> Null
Field Value
Type | Description |
---|---|
ISerializer<Null> |
Single
System.Single (big endian, network byte order) serializer
Declaration
public static ISerializer<float> Single
Field Value
Type | Description |
---|---|
ISerializer<float> |
Utf8
String (UTF8) serializer.
Declaration
public static ISerializer<string> Utf8
Field Value
Type | Description |
---|---|
ISerializer<string> |