Search Results for

    Show / Hide Table of Contents

    Class GraphBinaryReader

    Allows to deserialize objects from GraphBinary.

    Inheritance
    System.Object
    GraphBinaryReader
    Inherited Members
    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
    Assembly: cs.temp.dll.dll
    Syntax
    public class GraphBinaryReader

    Constructors

    GraphBinaryReader(TypeSerializerRegistry)

    Initializes a new instance of the GraphBinaryReader class.

    Declaration
    public GraphBinaryReader(TypeSerializerRegistry registry = null)
    Parameters
    Type Name Description
    TypeSerializerRegistry registry

    The TypeSerializerRegistry to use for deserialization.

    Methods

    ReadAsync(Stream, CancellationToken)

    Reads the type code, information and value with fully-qualified format.

    Declaration
    public async Task<object> ReadAsync(Stream stream, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    Stream stream

    The GraphBinary data to parse.

    CancellationToken cancellationToken

    The token to cancel the operation. The default value is None.

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

    The read value.

    ReadValueAsync<T>(Stream, Boolean, CancellationToken)

    Reads only the value for a specific type T.

    Declaration
    public async Task<object> ReadValueAsync<T>(Stream stream, bool nullable, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    Stream stream

    The GraphBinary data to parse.

    System.Boolean nullable

    Whether or not the value can be null.

    CancellationToken cancellationToken

    The token to cancel the operation. The default value is None.

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

    The read value.

    Type Parameters
    Name Description
    T

    The type of the object to read.

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