Table of Contents

Class BigSizeTypeSerializer

Namespace
NLightning.Infrastructure.Serialization.ValueObjects
Assembly
NLightning.Infrastructure.Serialization.dll
public class BigSizeTypeSerializer : IValueObjectTypeSerializer<BigSize>, IValueObjectTypeSerializer
Inheritance
BigSizeTypeSerializer
Implements
Inherited Members

Methods

DeserializeAsync(Stream)

Deserializes a BigSize value from a stream.

public Task<BigSize> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream from which the BigSize value will be deserialized.

Returns

Task<BigSize>

A task that represents the asynchronous deserialization operation, containing the deserialized BigSize value.

Exceptions

ArgumentException

Thrown when the stream is empty or contains insufficient data for deserialization.

IOException

Thrown when an I/O error occurs during the read operation.

SerializeAsync(IValueObject, Stream)

Serializes a BigSize value into a stream.

public Task SerializeAsync(IValueObject valueObject, Stream stream)

Parameters

valueObject IValueObject

The BigSize value to serialize.

stream Stream

The stream where the serialized value will be written.

Returns

Task

A task that represents the asynchronous serialization operation.

Exceptions

ArgumentNullException

Thrown when the stream is null.

IOException

Thrown when an I/O error occurs during the write operation.