Search Results for

    Show / Hide Table of Contents

    Class SingleTypeSerializer<T>

    Represents a serializer for types that can be represented as a single value and that can be read and write in a single operation.

    Inheritance
    System.Object
    SimpleTypeSerializer<T>
    SingleTypeSerializer<T>
    Implements
    ITypeSerializer
    Inherited Members
    SimpleTypeSerializer<T>.DataType
    SimpleTypeSerializer<T>.WriteAsync(Object, Stream, GraphBinaryWriter)
    SimpleTypeSerializer<T>.WriteValueAsync(Object, Stream, GraphBinaryWriter, Boolean)
    SimpleTypeSerializer<T>.ReadAsync(Stream, GraphBinaryReader)
    SimpleTypeSerializer<T>.ReadValueAsync(Stream, GraphBinaryReader, Boolean)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Gremlin.Net.Structure.IO.GraphBinary.Types
    Assembly: cs.temp.dll.dll
    Syntax
    public class SingleTypeSerializer<T> : SimpleTypeSerializer<T>, ITypeSerializer
    Type Parameters
    Name Description
    T

    Methods

    ReadValueAsync(Stream, GraphBinaryReader)

    Reads a non-nullable value according to the type format.

    Declaration
    protected override async Task<T> ReadValueAsync(Stream stream, GraphBinaryReader reader)
    Parameters
    Type Name Description
    Stream stream

    The GraphBinary data to parse.

    GraphBinaryReader reader

    A GraphBinaryReader.

    Returns
    Type Description
    System.Threading.Tasks.Task<T>

    The read value.

    Overrides
    Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<T>.ReadValueAsync(Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryReader)

    WriteValueAsync(T, Stream, GraphBinaryWriter)

    Writes a non-nullable value into a stream.

    Declaration
    protected override async Task WriteValueAsync(T value, Stream stream, GraphBinaryWriter writer)
    Parameters
    Type Name Description
    T value

    The value to write.

    Stream stream

    The stream to write to.

    GraphBinaryWriter writer

    A GraphBinaryWriter.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous write operation.

    Overrides
    Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<T>.WriteValueAsync(T, Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter)

    Implements

    ITypeSerializer
    In This Article
    Back to top Copyright © 2018 The Apache Software Foundation