class BinarySerializerOrDeserializer (Niantic.ARDK.Utilities.BinarySerialization.BinarySerializerOrDeserializer)

Overview

Base class for both binary serializers and binary deserializers. This class is responsible for holding the Stream as well as the “serialization contexts” that might be needed during serialization. More…

class BinarySerializerOrDeserializer: IDisposable {
public:
    // properties

    Stream Stream;

    // methods

    virtual void Dispose();
    T GetContext< T >();
};

// direct descendants

class BinaryDeserializer;
class BinarySerializer;

Detailed Documentation

Base class for both binary serializers and binary deserializers. This class is responsible for holding the Stream as well as the “serialization contexts” that might be needed during serialization.

Properties

Stream Stream

Gets the stream used to serialize or deserialize data from this serializer/deserializer.

Methods

virtual void Dispose()

Releases resources used by this serializer or deserializer. This does not dispose the stream.

T GetContext< T >()

Gets a context of type T for this serialization. Item serializers might want to keep some context per serialization, like arrays use a maximum length limit, which is controlled by the class ArrayLengthLimiter (which is a context class).