Show / Hide Table of Contents

Struct FileBufferingWriter.Options

Represents construction options of the writer.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public readonly struct FileBufferingWriter.Options

Properties

| Edit this page View Source

AsyncIO

To enable asynchronous I/O operations.

Declaration
public bool AsyncIO { get; init; }
Property Value
Type Description
bool
Remarks

In asynchronous mode you should use asynchronous methods for writing. Synchronous calls in this mode cause performance overhead. The default value is true.

| Edit this page View Source

FileBufferSize

Gets or sets memory buffer for file I/O operations.

Declaration
public int FileBufferSize { get; init; }
Property Value
Type Description
int
Remarks

This property has no effect if WriteThrough is true.

| Edit this page View Source

FileName

Defines the path to the file to be used as backing store for the written content when in-memory buffer overlfows.

Declaration
public string FileName { init; }
Property Value
Type Description
string
Remarks

If this property is defined then the file will not be deleted automatically on Dispose(bool) call.

| Edit this page View Source

InitialCapacity

Initial capacity of internal buffer. Should not be greater than MemoryThreshold.

Declaration
public int InitialCapacity { get; init; }
Property Value
Type Description
int
| Edit this page View Source

MeasurementTags

Sets a list of tags to be associated with each measurement.

Declaration
[CLSCompliant(false)]
public TagList MeasurementTags { get; init; }
Property Value
Type Description
TagList
| Edit this page View Source

MemoryAllocator

Gets or sets the allocator of internal buffer.

Declaration
public MemoryAllocator<byte>? MemoryAllocator { get; init; }
Property Value
Type Description
MemoryAllocator<byte>
| Edit this page View Source

MemoryThreshold

The maximum amount of memory in bytes to allocate before switching to a file on disk.

Declaration
public int MemoryThreshold { get; init; }
Property Value
Type Description
int
| Edit this page View Source

TempDir

Defines the path to the existing directory for placing temporary file to be used as backing store for the written content when in-memory buffer overflows.

Declaration
public string? TempDir { init; }
Property Value
Type Description
string
Remarks

If this property is defined then the file will be deleted automatically on Dispose(bool) call.

| Edit this page View Source

UseTemporaryFile

Gets a value indicating that the backing store for the writer should be represented by temporary file which will be deleted automatically.

Declaration
public bool UseTemporaryFile { get; }
Property Value
Type Description
bool
| Edit this page View Source

WriteThrough

Indicates that the system should write through any intermediate cache and go directly to disk.

Declaration
public bool WriteThrough { get; init; }
Property Value
Type Description
bool
Remarks

The default value is false.

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾