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)

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

    Declaration
    public async Task<object> ReadAsync(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The GraphBinary data to parse.

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

    The read value.

    ReadValueAsync<T>(Stream, Boolean)

    Reads only the value for a specific type T.

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

    The GraphBinary data to parse.

    System.Boolean nullable

    Whether or not the value can be null.

    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