Provides functionality for writing data in a streaming manner to a buffer or a stream. More...
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. | |
Provides functionality for writing data in a streaming manner to a buffer or a stream.
Definition at line 12 of file Utf8FaunaWriter.cs.
Fauna.Serialization.Utf8FaunaWriter.Utf8FaunaWriter | ( | IBufferWriter< byte > | bufferWriter | ) |
Initializes a new instance of the Utf8FaunaWriter class with a specified buffer writer.
bufferWriter | The buffer writer to write to. |
Definition at line 20 of file Utf8FaunaWriter.cs.
Fauna.Serialization.Utf8FaunaWriter.Utf8FaunaWriter | ( | Stream | stream | ) |
Initializes a new instance of the Utf8FaunaWriter class with a specified stream.
stream | The stream to write to. |
Definition at line 29 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.Dispose | ( | ) |
Disposes the underlying writer.
Definition at line 53 of file Utf8FaunaWriter.cs.
async ValueTask Fauna.Serialization.Utf8FaunaWriter.DisposeAsync | ( | ) |
Asynchronously disposes the underlying writer.
Definition at line 61 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.Flush | ( | ) |
Flushes the written data to the underlying buffer or stream.
Definition at line 37 of file Utf8FaunaWriter.cs.
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.
void Fauna.Serialization.Utf8FaunaWriter.WriteBoolean | ( | string | fieldName, |
bool | value | ||
) |
Writes a boolean value with a specific field name.
fieldName | The name of the field. |
value | The boolean value to write. |
Definition at line 229 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteBooleanValue | ( | bool | value | ) |
Writes a boolean value to the stream.
value | The boolean value to write. |
Definition at line 386 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteBytes | ( | string | fieldName, |
byte[] | value | ||
) |
Writes a byte array value with a specific field name.
fieldName | The name of the field. |
value | The byte array value to write. |
Definition at line 185 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteBytesValue | ( | byte[] | value | ) |
Writes a byte array value as a tagged element.
value | The byte array value to write. |
Definition at line 309 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDate | ( | string | fieldName, |
DateTime | value | ||
) |
Writes a date value with a specific field name.
fieldName | The name of the field. |
value | The DateTime value to write. |
Definition at line 207 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDateValue | ( | DateOnly | value | ) |
Writes a date value as a tagged element.
value | The date value to write. |
Definition at line 346 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDateValue | ( | DateTime | value | ) |
Writes a date value as a tagged element.
value | The date value to write. |
Definition at line 336 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDateValue | ( | DateTimeOffset | value | ) |
Writes a date value as a tagged element.
value | The date value to write. |
Definition at line 356 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDouble | ( | string | fieldName, |
decimal | value | ||
) |
Writes a double value with a specific field name.
fieldName | The name of the field. |
value | The decimal value to write. |
Definition at line 141 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDouble | ( | string | fieldName, |
double | value | ||
) |
Writes a double value with a specific field name.
fieldName | The name of the field. |
value | The double value to write. |
Definition at line 152 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDoubleValue | ( | decimal | value | ) |
Writes a double value as a tagged element.
value | The double value to write. |
Definition at line 282 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteDoubleValue | ( | double | value | ) |
Writes a double value as a tagged element.
value | The double value to write. |
Definition at line 291 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteEndArray | ( | ) |
Writes the end of an array.
Definition at line 112 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteEndEscapedObject | ( | ) |
Writes the end of a specially tagged object.
Definition at line 95 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteEndObject | ( | ) |
Writes the end of an object.
Definition at line 77 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteEndRef | ( | ) |
Writes the end of a reference object.
Definition at line 130 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteFieldName | ( | string | value | ) |
Writes a field name for the next value.
value | The name of the field. |
Definition at line 261 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteInt | ( | string | fieldName, |
int | value | ||
) |
Writes an integer value with a specific field name.
fieldName | The name of the field. |
value | The integer value to write. |
Definition at line 163 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteIntValue | ( | int | value | ) |
Writes an integer value as a tagged element.
value | The integer value to write. |
Definition at line 300 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteLong | ( | string | fieldName, |
long | value | ||
) |
Writes a long integer value with a specific field name.
fieldName | The name of the field. |
value | The long integer value to write. |
Definition at line 174 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteLongValue | ( | long | value | ) |
Writes a long integer value as a tagged element.
value | The long integer value to write. |
Definition at line 318 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteModule | ( | string | fieldName, |
Module | value | ||
) |
Writes a module value with a specific field name.
fieldName | The name of the field. |
value | The module value to write. |
Definition at line 251 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteModuleValue | ( | Module | value | ) |
Writes a module value as a tagged element.
value | The module value to write. |
Definition at line 403 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteNull | ( | string | fieldName | ) |
Writes a null value with a specific field name.
fieldName | The name of the field. |
Definition at line 240 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteNullValue | ( | ) |
Writes a null value to the stream.
Definition at line 394 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteStartArray | ( | ) |
Writes the beginning of an array.
Definition at line 104 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteStartEscapedObject | ( | ) |
Writes the beginning of a specially tagged object.
Definition at line 85 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteStartObject | ( | ) |
Writes the beginning of an object.
Definition at line 69 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteStartRef | ( | ) |
Writes the beginning of a reference object.
Definition at line 120 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteString | ( | string | fieldName, |
string | value | ||
) |
Writes a string value with a specific field name.
fieldName | The name of the field. |
value | The string value to write. |
Definition at line 196 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteStringValue | ( | string | value | ) |
Writes a string value as a tagged element.
value | The string value to write. |
Definition at line 327 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteTaggedValue | ( | string | tag, |
string | value | ||
) |
Writes a tagged value in an object.
tag | The tag to use for the value. |
value | The value associated with the tag. |
Definition at line 271 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteTime | ( | string | fieldName, |
DateTime | value | ||
) |
Writes a time value with a specific field name.
fieldName | The name of the field. |
value | The DateTime value to write. |
Definition at line 218 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteTimeValue | ( | DateTime | value | ) |
Writes a date value as a tagged element.
value | The date value to write. |
Definition at line 366 of file Utf8FaunaWriter.cs.
void Fauna.Serialization.Utf8FaunaWriter.WriteTimeValue | ( | DateTimeOffset | value | ) |
Writes a date value as a tagged element.
value | The date value to write. |
Definition at line 376 of file Utf8FaunaWriter.cs.