Search Results for

    Show / Hide Table of Contents

    Class ByteArraySerializer

    This is a special Serializer that serializes and deserializes byte arrays only (just returns the byte array unchanged/uncopied).

    Inheritance
    Object
    Serializer
    ByteArraySerializer
    Inherited Members
    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
    Assembly: Akka.dll
    Syntax
    public class ByteArraySerializer : Serializer

    Constructors

    | Improve this Doc View Source

    ByteArraySerializer(ExtendedActorSystem)

    Initializes a new instance of the ByteArraySerializer class.

    Declaration
    public ByteArraySerializer(ExtendedActorSystem system)
    Parameters
    Type Name Description
    ExtendedActorSystem system

    The actor system to associate with this serializer.

    Properties

    | Improve this Doc View Source

    IncludeManifest

    Returns whether this serializer needs a manifest in the fromBinary method

    Declaration
    public override bool IncludeManifest { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Serializer.IncludeManifest

    Methods

    | Improve this Doc View Source

    FromBinary(Byte[], Type)

    Deserializes a byte array into an object of type type.

    Declaration
    public override object FromBinary(byte[] bytes, Type type)
    Parameters
    Type Name Description
    Byte[] bytes

    The array containing the serialized object

    Type type

    The type of object contained in the array

    Returns
    Type Description
    Object

    The object contained in the array

    Overrides
    Serializer.FromBinary(Byte[], Type)
    | Improve this Doc View Source

    ToBinary(Object)

    Serializes the given object into a byte array

    Declaration
    public override byte[] ToBinary(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to serialize

    Returns
    Type Description
    Byte[]

    A byte array containing the serialized object

    Overrides
    Serializer.ToBinary(Object)
    Exceptions
    Type Condition
    NotSupportedException

    This exception is thrown if the given obj is not a byte array.

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(Object)
    In This Article
    • githubImprove this Doc
    • 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