Search Results for

    Show / Hide Table of Contents

    Class SerializerV1Adapter

    Adapts legacy Serializer implementations to the SerializerV2 contract.

    Inheritance
    object
    Serializer
    SerializerV2
    SerializerV1Adapter
    Inherited Members
    SerializerV2.UnknownSize
    SerializerV2.IncludeManifest
    Serializer.ToBinaryWithAddress(Address, object)
    Serializer.FromBinary<T>(byte[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Serialization
    Assembly: Akka.dll
    Syntax
    public sealed class SerializerV1Adapter : SerializerV2

    Constructors

    | Edit this page View Source

    SerializerV1Adapter(ExtendedActorSystem, Serializer)

    Initializes a new instance of the SerializerV1Adapter class.

    Declaration
    public SerializerV1Adapter(ExtendedActorSystem system, Serializer inner)
    Parameters
    Type Name Description
    ExtendedActorSystem system
    Serializer inner

    Properties

    | Edit this page View Source

    Identifier

    Completely unique value to identify this implementation of Serializer, used to optimize network traffic Values from 0 to 16 is reserved for Akka internal usage

    Declaration
    public override int Identifier { get; }
    Property Value
    Type Description
    int
    Overrides
    Serializer.Identifier
    | Edit this page View Source

    Inner

    The wrapped V1 serializer.

    Declaration
    public Serializer Inner { get; }
    Property Value
    Type Description
    Serializer

    Methods

    | Edit this page View Source

    Deserialize(ReadOnlySequence<byte>, string)

    Deserializes bytes using a serializer manifest.

    Declaration
    public override object Deserialize(ReadOnlySequence<byte> bytes, string manifest)
    Parameters
    Type Name Description
    ReadOnlySequence<byte> bytes
    string manifest
    Returns
    Type Description
    object
    Overrides
    SerializerV2.Deserialize(ReadOnlySequence<byte>, string)
    | Edit this page View Source

    FromBinary(byte[], string)

    Deserializes a byte array using a serializer manifest.

    Declaration
    public override object FromBinary(byte[] bytes, string manifest)
    Parameters
    Type Name Description
    byte[] bytes
    string manifest
    Returns
    Type Description
    object
    Overrides
    SerializerV2.FromBinary(byte[], string)
    | Edit this page View Source

    FromBinary(byte[], Type)

    Deserializes a byte array using a type manifest.

    Declaration
    public override object FromBinary(byte[] bytes, Type type)
    Parameters
    Type Name Description
    byte[] bytes
    Type type
    Returns
    Type Description
    object
    Overrides
    SerializerV2.FromBinary(byte[], Type)
    | Edit this page View Source

    Manifest(object)

    Returns the manifest used by this serializer for obj.

    Declaration
    public override string Manifest(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    string
    Overrides
    SerializerV2.Manifest(object)
    | Edit this page View Source

    Serialize(object, IBufferWriter<byte>)

    Serializes obj into writer.

    Declaration
    public override int Serialize(object obj, IBufferWriter<byte> writer)
    Parameters
    Type Name Description
    object obj
    IBufferWriter<byte> writer
    Returns
    Type Description
    int

    The number of payload bytes written.

    Overrides
    SerializerV2.Serialize(object, IBufferWriter<byte>)
    | Edit this page View Source

    SizeHint(object)

    Returns the exact serialized size in bytes, or UnknownSize when the exact size cannot be cheaply computed.

    Declaration
    public override int SizeHint(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    int
    Overrides
    SerializerV2.SizeHint(object)
    | Edit this page View Source

    ToBinary(object)

    Serializes the given object into a byte array for compatibility boundaries.

    Declaration
    public override byte[] ToBinary(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    byte[]
    Overrides
    SerializerV2.ToBinary(object)

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET