Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Fauna.Serialization.Utf8FaunaWriter Class Referencesealed

Provides functionality for writing data in a streaming manner to a buffer or a stream. More...

Inheritance diagram for Fauna.Serialization.Utf8FaunaWriter:

Public Member Functions

 Utf8FaunaWriter (IBufferWriter< byte > bufferWriter)
 Initializes a new instance of the Utf8FaunaWriter class with a specified buffer writer.
 
 Utf8FaunaWriter (Stream stream)
 Initializes a new instance of the Utf8FaunaWriter class with a specified stream.
 
void Flush ()
 Flushes the written data to the underlying buffer or stream.
 
async ValueTask FlushAsync ()
 Asynchronously flushes the written data to the underlying buffer or stream.
 
void Dispose ()
 Disposes the underlying writer.
 
async ValueTask DisposeAsync ()
 Asynchronously disposes the underlying writer.
 
void WriteStartObject ()
 Writes the beginning of an object.
 
void WriteEndObject ()
 Writes the end of an object.
 
void WriteStartEscapedObject ()
 Writes the beginning of a specially tagged object.
 
void WriteEndEscapedObject ()
 Writes the end of a specially tagged object.
 
void WriteStartArray ()
 Writes the beginning of an array.
 
void WriteEndArray ()
 Writes the end of an array.
 
void WriteStartRef ()
 Writes the beginning of a reference object.
 
void WriteEndRef ()
 Writes the end of a reference object.
 
void WriteDouble (string fieldName, decimal value)
 Writes a double value with a specific field name.
 
void WriteDouble (string fieldName, double value)
 Writes a double value with a specific field name.
 
void WriteInt (string fieldName, int value)
 Writes an integer value with a specific field name.
 
void WriteLong (string fieldName, long value)
 Writes a long integer value with a specific field name.
 
void WriteBytes (string fieldName, byte[] value)
 Writes a byte array value with a specific field name.
 
void WriteString (string fieldName, string value)
 Writes a string value with a specific field name.
 
void WriteDate (string fieldName, DateTime value)
 Writes a date value with a specific field name.
 
void WriteTime (string fieldName, DateTime value)
 Writes a time value with a specific field name.
 
void WriteBoolean (string fieldName, bool value)
 Writes a boolean value with a specific field name.
 
void WriteNull (string fieldName)
 Writes a null value with a specific field name.
 
void WriteModule (string fieldName, Module value)
 Writes a module value with a specific field name.
 
void WriteFieldName (string value)
 Writes a field name for the next value.
 
void WriteTaggedValue (string tag, string value)
 Writes a tagged value in an object.
 
void WriteDoubleValue (decimal value)
 Writes a double value as a tagged element.
 
void WriteDoubleValue (double value)
 Writes a double value as a tagged element.
 
void WriteIntValue (int value)
 Writes an integer value as a tagged element.
 
void WriteBytesValue (byte[] value)
 Writes a byte array value as a tagged element.
 
void WriteLongValue (long value)
 Writes a long integer value as a tagged element.
 
void WriteStringValue (string value)
 Writes a string value as a tagged element.
 
void WriteDateValue (DateTime value)
 Writes a date value as a tagged element.
 
void WriteDateValue (DateOnly value)
 Writes a date value as a tagged element.
 
void WriteDateValue (DateTimeOffset value)
 Writes a date value as a tagged element.
 
void WriteTimeValue (DateTime value)
 Writes a date value as a tagged element.
 
void WriteTimeValue (DateTimeOffset value)
 Writes a date value as a tagged element.
 
void WriteBooleanValue (bool value)
 Writes a boolean value to the stream.
 
void WriteNullValue ()
 Writes a null value to the stream.
 
void WriteModuleValue (Module value)
 Writes a module value as a tagged element.
 

Detailed Description

Provides functionality for writing data in a streaming manner to a buffer or a stream.

Definition at line 12 of file Utf8FaunaWriter.cs.

Constructor & Destructor Documentation

◆ Utf8FaunaWriter() [1/2]

Fauna.Serialization.Utf8FaunaWriter.Utf8FaunaWriter ( IBufferWriter< byte >  bufferWriter)

Initializes a new instance of the Utf8FaunaWriter class with a specified buffer writer.

Parameters
bufferWriterThe buffer writer to write to.

Definition at line 20 of file Utf8FaunaWriter.cs.

◆ Utf8FaunaWriter() [2/2]

Fauna.Serialization.Utf8FaunaWriter.Utf8FaunaWriter ( Stream  stream)

Initializes a new instance of the Utf8FaunaWriter class with a specified stream.

Parameters
streamThe stream to write to.

Definition at line 29 of file Utf8FaunaWriter.cs.

Member Function Documentation

◆ Dispose()

void Fauna.Serialization.Utf8FaunaWriter.Dispose ( )

Disposes the underlying writer.

Definition at line 53 of file Utf8FaunaWriter.cs.

◆ DisposeAsync()

async ValueTask Fauna.Serialization.Utf8FaunaWriter.DisposeAsync ( )

Asynchronously disposes the underlying writer.

Definition at line 61 of file Utf8FaunaWriter.cs.

◆ Flush()

void Fauna.Serialization.Utf8FaunaWriter.Flush ( )

Flushes the written data to the underlying buffer or stream.

Definition at line 37 of file Utf8FaunaWriter.cs.

◆ FlushAsync()

async ValueTask Fauna.Serialization.Utf8FaunaWriter.FlushAsync ( )

Asynchronously flushes the written data to the underlying buffer or stream.

Definition at line 45 of file Utf8FaunaWriter.cs.

◆ WriteBoolean()

void Fauna.Serialization.Utf8FaunaWriter.WriteBoolean ( string  fieldName,
bool  value 
)

Writes a boolean value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe boolean value to write.

Definition at line 229 of file Utf8FaunaWriter.cs.

◆ WriteBooleanValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteBooleanValue ( bool  value)

Writes a boolean value to the stream.

Parameters
valueThe boolean value to write.

Definition at line 386 of file Utf8FaunaWriter.cs.

◆ WriteBytes()

void Fauna.Serialization.Utf8FaunaWriter.WriteBytes ( string  fieldName,
byte[]  value 
)

Writes a byte array value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe byte array value to write.

Definition at line 185 of file Utf8FaunaWriter.cs.

◆ WriteBytesValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteBytesValue ( byte[]  value)

Writes a byte array value as a tagged element.

Parameters
valueThe byte array value to write.

Definition at line 309 of file Utf8FaunaWriter.cs.

◆ WriteDate()

void Fauna.Serialization.Utf8FaunaWriter.WriteDate ( string  fieldName,
DateTime  value 
)

Writes a date value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe DateTime value to write.

Definition at line 207 of file Utf8FaunaWriter.cs.

◆ WriteDateValue() [1/3]

void Fauna.Serialization.Utf8FaunaWriter.WriteDateValue ( DateOnly  value)

Writes a date value as a tagged element.

Parameters
valueThe date value to write.

Definition at line 346 of file Utf8FaunaWriter.cs.

◆ WriteDateValue() [2/3]

void Fauna.Serialization.Utf8FaunaWriter.WriteDateValue ( DateTime  value)

Writes a date value as a tagged element.

Parameters
valueThe date value to write.

Definition at line 336 of file Utf8FaunaWriter.cs.

◆ WriteDateValue() [3/3]

void Fauna.Serialization.Utf8FaunaWriter.WriteDateValue ( DateTimeOffset  value)

Writes a date value as a tagged element.

Parameters
valueThe date value to write.

Definition at line 356 of file Utf8FaunaWriter.cs.

◆ WriteDouble() [1/2]

void Fauna.Serialization.Utf8FaunaWriter.WriteDouble ( string  fieldName,
decimal  value 
)

Writes a double value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe decimal value to write.

Definition at line 141 of file Utf8FaunaWriter.cs.

◆ WriteDouble() [2/2]

void Fauna.Serialization.Utf8FaunaWriter.WriteDouble ( string  fieldName,
double  value 
)

Writes a double value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe double value to write.

Definition at line 152 of file Utf8FaunaWriter.cs.

◆ WriteDoubleValue() [1/2]

void Fauna.Serialization.Utf8FaunaWriter.WriteDoubleValue ( decimal  value)

Writes a double value as a tagged element.

Parameters
valueThe double value to write.

Definition at line 282 of file Utf8FaunaWriter.cs.

◆ WriteDoubleValue() [2/2]

void Fauna.Serialization.Utf8FaunaWriter.WriteDoubleValue ( double  value)

Writes a double value as a tagged element.

Parameters
valueThe double value to write.

Definition at line 291 of file Utf8FaunaWriter.cs.

◆ WriteEndArray()

void Fauna.Serialization.Utf8FaunaWriter.WriteEndArray ( )

Writes the end of an array.

Definition at line 112 of file Utf8FaunaWriter.cs.

◆ WriteEndEscapedObject()

void Fauna.Serialization.Utf8FaunaWriter.WriteEndEscapedObject ( )

Writes the end of a specially tagged object.

Definition at line 95 of file Utf8FaunaWriter.cs.

◆ WriteEndObject()

void Fauna.Serialization.Utf8FaunaWriter.WriteEndObject ( )

Writes the end of an object.

Definition at line 77 of file Utf8FaunaWriter.cs.

◆ WriteEndRef()

void Fauna.Serialization.Utf8FaunaWriter.WriteEndRef ( )

Writes the end of a reference object.

Definition at line 130 of file Utf8FaunaWriter.cs.

◆ WriteFieldName()

void Fauna.Serialization.Utf8FaunaWriter.WriteFieldName ( string  value)

Writes a field name for the next value.

Parameters
valueThe name of the field.

Definition at line 261 of file Utf8FaunaWriter.cs.

◆ WriteInt()

void Fauna.Serialization.Utf8FaunaWriter.WriteInt ( string  fieldName,
int  value 
)

Writes an integer value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe integer value to write.

Definition at line 163 of file Utf8FaunaWriter.cs.

◆ WriteIntValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteIntValue ( int  value)

Writes an integer value as a tagged element.

Parameters
valueThe integer value to write.

Definition at line 300 of file Utf8FaunaWriter.cs.

◆ WriteLong()

void Fauna.Serialization.Utf8FaunaWriter.WriteLong ( string  fieldName,
long  value 
)

Writes a long integer value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe long integer value to write.

Definition at line 174 of file Utf8FaunaWriter.cs.

◆ WriteLongValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteLongValue ( long  value)

Writes a long integer value as a tagged element.

Parameters
valueThe long integer value to write.

Definition at line 318 of file Utf8FaunaWriter.cs.

◆ WriteModule()

void Fauna.Serialization.Utf8FaunaWriter.WriteModule ( string  fieldName,
Module  value 
)

Writes a module value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe module value to write.

Definition at line 251 of file Utf8FaunaWriter.cs.

◆ WriteModuleValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteModuleValue ( Module  value)

Writes a module value as a tagged element.

Parameters
valueThe module value to write.

Definition at line 403 of file Utf8FaunaWriter.cs.

◆ WriteNull()

void Fauna.Serialization.Utf8FaunaWriter.WriteNull ( string  fieldName)

Writes a null value with a specific field name.

Parameters
fieldNameThe name of the field.

Definition at line 240 of file Utf8FaunaWriter.cs.

◆ WriteNullValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteNullValue ( )

Writes a null value to the stream.

Definition at line 394 of file Utf8FaunaWriter.cs.

◆ WriteStartArray()

void Fauna.Serialization.Utf8FaunaWriter.WriteStartArray ( )

Writes the beginning of an array.

Definition at line 104 of file Utf8FaunaWriter.cs.

◆ WriteStartEscapedObject()

void Fauna.Serialization.Utf8FaunaWriter.WriteStartEscapedObject ( )

Writes the beginning of a specially tagged object.

Definition at line 85 of file Utf8FaunaWriter.cs.

◆ WriteStartObject()

void Fauna.Serialization.Utf8FaunaWriter.WriteStartObject ( )

Writes the beginning of an object.

Definition at line 69 of file Utf8FaunaWriter.cs.

◆ WriteStartRef()

void Fauna.Serialization.Utf8FaunaWriter.WriteStartRef ( )

Writes the beginning of a reference object.

Definition at line 120 of file Utf8FaunaWriter.cs.

◆ WriteString()

void Fauna.Serialization.Utf8FaunaWriter.WriteString ( string  fieldName,
string  value 
)

Writes a string value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe string value to write.

Definition at line 196 of file Utf8FaunaWriter.cs.

◆ WriteStringValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteStringValue ( string  value)

Writes a string value as a tagged element.

Parameters
valueThe string value to write.

Definition at line 327 of file Utf8FaunaWriter.cs.

◆ WriteTaggedValue()

void Fauna.Serialization.Utf8FaunaWriter.WriteTaggedValue ( string  tag,
string  value 
)

Writes a tagged value in an object.

Parameters
tagThe tag to use for the value.
valueThe value associated with the tag.

Definition at line 271 of file Utf8FaunaWriter.cs.

◆ WriteTime()

void Fauna.Serialization.Utf8FaunaWriter.WriteTime ( string  fieldName,
DateTime  value 
)

Writes a time value with a specific field name.

Parameters
fieldNameThe name of the field.
valueThe DateTime value to write.

Definition at line 218 of file Utf8FaunaWriter.cs.

◆ WriteTimeValue() [1/2]

void Fauna.Serialization.Utf8FaunaWriter.WriteTimeValue ( DateTime  value)

Writes a date value as a tagged element.

Parameters
valueThe date value to write.

Definition at line 366 of file Utf8FaunaWriter.cs.

◆ WriteTimeValue() [2/2]

void Fauna.Serialization.Utf8FaunaWriter.WriteTimeValue ( DateTimeOffset  value)

Writes a date value as a tagged element.

Parameters
valueThe date value to write.

Definition at line 376 of file Utf8FaunaWriter.cs.


The documentation for this class was generated from the following file: