Search Results for

    Show / Hide Table of Contents

    Class GraphBinaryWriter

    Allows to serialize objects to GraphBinary.

    Inheritance
    System.Object
    GraphBinaryWriter
    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 GraphBinaryWriter

    Constructors

    GraphBinaryWriter(TypeSerializerRegistry)

    Initializes a new instance of the GraphBinaryWriter class.

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

    The TypeSerializerRegistry to use for serialization.

    Fields

    VersionByte

    A System.Byte representing the version of the GraphBinary specification.

    Declaration
    public const byte VersionByte = 129
    Field Value
    Type Description
    System.Byte

    Methods

    WriteAsync(Object, Stream)

    Writes an object in fully-qualified format, containing {type_code}{type_info}{value_flag}{value}.

    Declaration
    public async Task WriteAsync(object value, Stream stream)
    Parameters
    Type Name Description
    System.Object value

    The value to write.

    Stream stream

    The stream to write to.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous write operation.

    WriteValueAsync(Object, Stream, Boolean)

    Writes a value without including type information.

    Declaration
    public async Task WriteValueAsync(object value, Stream stream, bool nullable)
    Parameters
    Type Name Description
    System.Object value

    The value to write.

    Stream stream

    The stream to write to.

    System.Boolean nullable

    Whether or not the value can be null.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous write operation.

    WriteValueFlagNoneAsync(Stream)

    Writes a single byte with value 0, representing an unset value_flag.

    Declaration
    public async Task WriteValueFlagNoneAsync(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream to write to.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous write operation.

    WriteValueFlagNullAsync(Stream)

    Writes a single byte representing the null value_flag.

    Declaration
    public async Task WriteValueFlagNullAsync(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream to write to.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous write operation.

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