Class LambdaSerializer
A serializer for lambdas.
Implements
Inherited Members
Namespace: Gremlin.Net.Structure.IO.GraphBinary.Types
Assembly: Gremlin.Net.dll
Syntax
public class LambdaSerializer : SimpleTypeSerializer<ILambda>, ITypeSerializer
Constructors
LambdaSerializer()
Initializes a new instance of the LambdaSerializer class.
Declaration
public LambdaSerializer()
Methods
ReadValueAsync(Stream, GraphBinaryReader, CancellationToken)
Reads a non-nullable value according to the type format.
Declaration
protected override Task<ILambda> ReadValueAsync(Stream stream, GraphBinaryReader reader, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The GraphBinary data to parse. |
| GraphBinaryReader | reader | |
| CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
| Type | Description |
|---|---|
| Task<ILambda> | The read value. |
Overrides
WriteValueAsync(ILambda, Stream, GraphBinaryWriter, CancellationToken)
Writes a non-nullable value into a stream.
Declaration
protected override Task WriteValueAsync(ILambda value, Stream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ILambda | value | The value to write. |
| Stream | stream | The stream to write to. |
| GraphBinaryWriter | writer | |
| CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous write operation. |
Overrides
SimpleTypeSerializer<ILambda>.WriteValueAsync(ILambda, Stream, GraphBinaryWriter, CancellationToken)