Search Results for

    Show / Hide Table of Contents

    Class MessagePackSerializer<TProtocol>

    Base class for source-generated MessagePack serializers scoped to a protocol marker type.

    Inheritance
    object
    Serializer
    SerializerV2
    MessagePackSerializer<TProtocol>
    Inherited Members
    SerializerV2.UnknownSize
    SerializerV2.IncludeManifest
    SerializerV2.Manifest(object)
    SerializerV2.SizeHint(object)
    SerializerV2.Serialize(object, IBufferWriter<byte>)
    SerializerV2.Deserialize(ReadOnlySequence<byte>, string)
    SerializerV2.FromBinary(byte[], string)
    SerializerV2.FromBinary(byte[], Type)
    Serializer.system
    Serializer.Identifier
    Serializer.ToBinaryWithAddress(Address, object)
    Serializer.FromBinary<T>(byte[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Serialization.V2
    Assembly: Akka.Serialization.V2.dll
    Syntax
    public abstract class MessagePackSerializer<TProtocol> : SerializerV2
    Type Parameters
    Name Description
    TProtocol

    Constructors

    | Edit this page View Source

    MessagePackSerializer(ExtendedActorSystem)

    Declaration
    protected MessagePackSerializer(ExtendedActorSystem system)
    Parameters
    Type Name Description
    ExtendedActorSystem system

    Methods

    | Edit this page View Source

    ReadActorRef(ref MessagePackReader)

    Declaration
    protected IActorRef? ReadActorRef(ref MessagePackReader reader)
    Parameters
    Type Name Description
    MessagePackReader reader
    Returns
    Type Description
    IActorRef
    | Edit this page View Source

    ReadDateTime(ref MessagePackReader)

    Declaration
    protected static DateTime ReadDateTime(ref MessagePackReader reader)
    Parameters
    Type Name Description
    MessagePackReader reader
    Returns
    Type Description
    DateTime
    | Edit this page View Source

    ReadDateTimeOffset(ref MessagePackReader)

    Declaration
    protected static DateTimeOffset ReadDateTimeOffset(ref MessagePackReader reader)
    Parameters
    Type Name Description
    MessagePackReader reader
    Returns
    Type Description
    DateTimeOffset
    | Edit this page View Source

    ReadDecimal(ref MessagePackReader)

    Declaration
    protected static decimal ReadDecimal(ref MessagePackReader reader)
    Parameters
    Type Name Description
    MessagePackReader reader
    Returns
    Type Description
    decimal
    | Edit this page View Source

    ReadEnvelopePayload(ref MessagePackReader)

    Declaration
    protected object? ReadEnvelopePayload(ref MessagePackReader reader)
    Parameters
    Type Name Description
    MessagePackReader reader
    Returns
    Type Description
    object
    | Edit this page View Source

    ReadEnvelopePayload<TPayload>(ref MessagePackReader)

    Declaration
    protected TPayload ReadEnvelopePayload<TPayload>(ref MessagePackReader reader)
    Parameters
    Type Name Description
    MessagePackReader reader
    Returns
    Type Description
    TPayload
    Type Parameters
    Name Description
    TPayload
    | Edit this page View Source

    ReadGuid(ref MessagePackReader)

    Declaration
    protected static Guid ReadGuid(ref MessagePackReader reader)
    Parameters
    Type Name Description
    MessagePackReader reader
    Returns
    Type Description
    Guid
    | Edit this page View Source

    SizeOfActorRef(IActorRef?)

    Declaration
    protected static int SizeOfActorRef(IActorRef? actorRef)
    Parameters
    Type Name Description
    IActorRef actorRef
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfArrayHeader(int)

    Declaration
    protected static int SizeOfArrayHeader(int count)
    Parameters
    Type Name Description
    int count
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfBinHeader(int)

    Declaration
    protected static int SizeOfBinHeader(int byteCount)
    Parameters
    Type Name Description
    int byteCount
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfBoolean(bool)

    Declaration
    protected static int SizeOfBoolean(bool value)
    Parameters
    Type Name Description
    bool value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfBytes(byte[]?)

    Declaration
    protected static int SizeOfBytes(byte[]? value)
    Parameters
    Type Name Description
    byte[] value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfDateTime(DateTime)

    Declaration
    protected static int SizeOfDateTime(DateTime value)
    Parameters
    Type Name Description
    DateTime value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfDateTimeOffset(DateTimeOffset)

    Declaration
    protected static int SizeOfDateTimeOffset(DateTimeOffset value)
    Parameters
    Type Name Description
    DateTimeOffset value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfDecimal(decimal)

    Declaration
    protected static int SizeOfDecimal(decimal value)
    Parameters
    Type Name Description
    decimal value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfDouble(double)

    Declaration
    protected static int SizeOfDouble(double value)
    Parameters
    Type Name Description
    double value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfEnum(int)

    Declaration
    protected static int SizeOfEnum(int value)
    Parameters
    Type Name Description
    int value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfEnvelopePayload(object?)

    Declaration
    protected int SizeOfEnvelopePayload(object? payload)
    Parameters
    Type Name Description
    object payload
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfGuid(Guid)

    Declaration
    protected static int SizeOfGuid(Guid value)
    Parameters
    Type Name Description
    Guid value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfInt32(int)

    Declaration
    protected static int SizeOfInt32(int value)
    Parameters
    Type Name Description
    int value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfInt64(long)

    Declaration
    protected static int SizeOfInt64(long value)
    Parameters
    Type Name Description
    long value
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfMapHeader(int)

    Declaration
    protected static int SizeOfMapHeader(int count)
    Parameters
    Type Name Description
    int count
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfNil()

    Declaration
    protected static int SizeOfNil()
    Returns
    Type Description
    int
    | Edit this page View Source

    SizeOfString(string?)

    Declaration
    protected static int SizeOfString(string? value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    int
    | 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)
    | Edit this page View Source

    WriteActorRef(ref MessagePackWriter, IActorRef?)

    Declaration
    protected static void WriteActorRef(ref MessagePackWriter writer, IActorRef? actorRef)
    Parameters
    Type Name Description
    MessagePackWriter writer
    IActorRef actorRef
    | Edit this page View Source

    WriteDateTime(ref MessagePackWriter, DateTime)

    Declaration
    protected static void WriteDateTime(ref MessagePackWriter writer, DateTime value)
    Parameters
    Type Name Description
    MessagePackWriter writer
    DateTime value
    | Edit this page View Source

    WriteDateTimeOffset(ref MessagePackWriter, DateTimeOffset)

    Declaration
    protected static void WriteDateTimeOffset(ref MessagePackWriter writer, DateTimeOffset value)
    Parameters
    Type Name Description
    MessagePackWriter writer
    DateTimeOffset value
    | Edit this page View Source

    WriteDecimal(ref MessagePackWriter, decimal)

    Declaration
    protected static void WriteDecimal(ref MessagePackWriter writer, decimal value)
    Parameters
    Type Name Description
    MessagePackWriter writer
    decimal value
    | Edit this page View Source

    WriteEnvelopePayload(ref MessagePackWriter, object?)

    Declaration
    protected void WriteEnvelopePayload(ref MessagePackWriter writer, object? payload)
    Parameters
    Type Name Description
    MessagePackWriter writer
    object payload
    | Edit this page View Source

    WriteGuid(ref MessagePackWriter, Guid)

    Declaration
    protected static void WriteGuid(ref MessagePackWriter writer, Guid value)
    Parameters
    Type Name Description
    MessagePackWriter writer
    Guid value

    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