Search Results for

    Show / Hide Table of Contents

    Class GraphBinaryReader

    Allows to deserialize objects from GraphBinary.

    Inheritance
    object
    GraphBinaryReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Gremlin.Net.Structure.IO.GraphBinary
    Assembly: Gremlin.Net.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 Task<object?> ReadAsync(Stream stream, CancellationToken cancellationToken = default)
    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
    Task<object>

    The read value.

    ReadNonNullableValueAsync<T>(Stream, CancellationToken)

    Reads only the value for a specific type T.

    Declaration
    public Task<object> ReadNonNullableValueAsync<T>(Stream stream, CancellationToken cancellationToken = default)
    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
    Task<object>

    The read value.

    Type Parameters
    Name Description
    T

    The type of the object to read.

    ReadNullableValueAsync<T>(Stream, CancellationToken)

    Reads only the value for a specific type T.

    Declaration
    public Task<object?> ReadNullableValueAsync<T>(Stream stream, CancellationToken cancellationToken = default)
    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
    Task<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