Class GraphBinaryMessageSerializer
Serializes data to and from Gremlin Server in GraphBinary format.
Inheritance
System.Object
GraphBinaryMessageSerializer
Namespace: Gremlin.Net.Structure.IO.GraphBinary
Assembly: cs.temp.dll.dll
Syntax
public class GraphBinaryMessageSerializer : IMessageSerializer
Constructors
GraphBinaryMessageSerializer(GraphBinaryReader, GraphBinaryWriter)
Initializes a new instance of the GraphBinaryMessageSerializer class.
Declaration
public GraphBinaryMessageSerializer(GraphBinaryReader reader = null, GraphBinaryWriter writer = null)
Parameters
Type | Name | Description |
---|---|---|
GraphBinaryReader | reader | The GraphBinaryReader used to deserialize from GraphBinary. |
GraphBinaryWriter | writer | The GraphBinaryWriter used to serialize to GraphBinary. |
Methods
DeserializeMessageAsync(Byte[])
Declaration
public async Task<ResponseMessage<List<object>>> DeserializeMessageAsync(byte[] message)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message |
Returns
Type | Description |
---|---|
Task<ResponseMessage<List<System.Object>>> |
SerializeMessageAsync(RequestMessage)
Declaration
public async Task<byte[]> SerializeMessageAsync(RequestMessage requestMessage)
Parameters
Type | Name | Description |
---|---|---|
RequestMessage | requestMessage |
Returns
Type | Description |
---|---|
Task<System.Byte[]> |