Table of Contents

Interface IMarshaller<T>

Namespace
Apache.Ignite.Marshalling
Assembly
Apache.Ignite.dll

Ignite marshaller (serializer / deserializer).

Marshaller is used in APIs that require transferring custom objects over the wire, such as Compute arguments and results.

See also JsonMarshaller<T>.
public interface IMarshaller<T>

Type Parameters

T

Object type.

Methods

Marshal(T, IBufferWriter<byte>)

Marshals (serializes) the specified object into the provided writer.

void Marshal(T obj, IBufferWriter<byte> writer)

Parameters

obj T

Object. Not null - Ignite handles nulls separately and does not invoke the marshaller.

writer IBufferWriter<byte>

Writer.

Unmarshal(ReadOnlySpan<byte>)

Unmarshals (deserializes) an object from the provided data.

T Unmarshal(ReadOnlySpan<byte> bytes)

Parameters

bytes ReadOnlySpan<byte>

Serialized data.

Returns

T

Deserialized object.