Show / Hide Table of Contents

Class FileBufferingWriter

Represents builder of contiguous block of memory that may switch to file as its backing store.

Inheritance
Object
MarshalByRefObject
Stream
FileBufferingWriter
Implements
IAsyncDisposable
IDisposable
IFlushableBufferWriter<Byte>
IBufferWriter<Byte>
IFlushable
IGrowableBuffer<Byte>
Inherited Members
Stream.Null
Stream.Close()
Stream.CopyTo(Stream)
Stream.CopyToAsync(Stream)
Stream.CopyToAsync(Stream, Int32)
Stream.CopyToAsync(Stream, CancellationToken)
Stream.CreateWaitHandle()
Stream.Dispose()
Stream.FlushAsync()
Stream.ObjectInvariant()
Stream.ReadAsync(Byte[], Int32, Int32)
Stream.Synchronized(Stream)
Stream.WriteAsync(Byte[], Int32, Int32)
Stream.ReadTimeout
Stream.WriteTimeout
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(Boolean)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public sealed class FileBufferingWriter : Stream, IAsyncDisposable, IDisposable, IFlushableBufferWriter<byte>, IBufferWriter<byte>, IFlushable, IGrowableBuffer<byte>
Remarks

This class can be used to write buffered content to a target Stream or IBufferWriter<T>. Additionally, it's possible to get buffered content as Memory<T>. If memory threshold was not reached then returned Memory<T> instance references bytes in memory. Otherwise, it references memory-mapped file.

Constructors

| Improve this Doc View Source

FileBufferingWriter(Nullable<MemoryAllocator<Byte>>, Int32, Int32, String, Boolean)

Initializes a new writer.

Declaration
public FileBufferingWriter(MemoryAllocator<byte>? allocator = default(MemoryAllocator<byte>? ), int memoryThreshold = 32768, int initialCapacity = 0, string tempDir = null, bool asyncIO = true)
Parameters
Type Name Description
Nullable<MemoryAllocator<Byte>> allocator

The allocator of internal buffer.

Int32 memoryThreshold

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

Int32 initialCapacity

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

String tempDir

The location of the directory to write buffered contents to. When unspecified, uses the value specified by the environment variable ASPNETCORE_TEMP if available, otherwise uses the value returned by GetTempPath().

Boolean asyncIO

true if you will use asynchronous methods of the instance; otherwise, false.

Exceptions
Type Condition
ArgumentOutOfRangeException

memoryThreshold is less than or equal to zero; or initialCapacity is less than zero or greater than memoryThreshold.

DirectoryNotFoundException

tempDir doesn't exist.

Properties

| Improve this Doc View Source

AllocationCounter

Sets the counter used to report allocation of internal buffer.

Declaration
public EventCounter AllocationCounter { set; }
Property Value
Type Description
EventCounter
| Improve this Doc View Source

CanRead

Declaration
public override bool CanRead { get; }
Property Value
Type Description
Boolean
Overrides
Stream.CanRead
| Improve this Doc View Source

CanSeek

Declaration
public override bool CanSeek { get; }
Property Value
Type Description
Boolean
Overrides
Stream.CanSeek
| Improve this Doc View Source

CanTimeout

Declaration
public override bool CanTimeout { get; }
Property Value
Type Description
Boolean
Overrides
Stream.CanTimeout
| Improve this Doc View Source

CanWrite

Declaration
public override bool CanWrite { get; }
Property Value
Type Description
Boolean
Overrides
Stream.CanWrite
| Improve this Doc View Source

Length

Declaration
public override long Length { get; }
Property Value
Type Description
Int64
Overrides
Stream.Length
| Improve this Doc View Source

Position

Declaration
public override long Position { get; set; }
Property Value
Type Description
Int64
Overrides
Stream.Position

Methods

| Improve this Doc View Source

Advance(Int32)

Declaration
public void Advance(int count)
Parameters
Type Name Description
Int32 count
| Improve this Doc View Source

BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)

Declaration
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
Parameters
Type Name Description
Byte[] buffer
Int32 offset
Int32 count
AsyncCallback callback
Object state
Returns
Type Description
IAsyncResult
Overrides
Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
| Improve this Doc View Source

BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)

Declaration
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
Parameters
Type Name Description
Byte[] buffer
Int32 offset
Int32 count
AsyncCallback callback
Object state
Returns
Type Description
IAsyncResult
Overrides
Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
| Improve this Doc View Source

Clear()

Removes all written data.

Declaration
public void Clear()
Exceptions
Type Condition
InvalidOperationException

Attempt to cleanup this writer while reading.

| Improve this Doc View Source

CopyTo(IBufferWriter<Byte>, Int32, CancellationToken)

Drains buffered content to the buffer synchronously.

Declaration
public long CopyTo(IBufferWriter<byte> destination, int bufferSize = 1024, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
IBufferWriter<Byte> destination

The buffer to drain buffered contents to.

Int32 bufferSize

The size, in bytes, of the buffer used to copy bytes.

CancellationToken token

The token to monitor for cancellation requests.

Returns
Type Description
Int64

The number of copied elements..

Exceptions
Type Condition
OperationCanceledException

The operation has been canceled.

| Improve this Doc View Source

CopyTo(Stream, Int32)

Drains buffered content to the stream synchronously.

Declaration
public override void CopyTo(Stream destination, int bufferSize)
Parameters
Type Name Description
Stream destination

The stream to drain buffered contents to.

Int32 bufferSize

The size, in bytes, of the buffer used to copy bytes.

Overrides
Stream.CopyTo(Stream, Int32)
| Improve this Doc View Source

CopyTo(Span<Byte>)

Drains buffered content to the memory block synchronously.

Declaration
public int CopyTo(Span<byte> output)
Parameters
Type Name Description
Span<Byte> output

The memory block used as a destination for copy operation.

Returns
Type Description
Int32

The actual number of copied elements.

| Improve this Doc View Source

CopyTo<TArg>(ReadOnlySpanAction<Byte, TArg>, TArg, Int32, CancellationToken)

Drains buffered content synchronously.

Declaration
public void CopyTo<TArg>(ReadOnlySpanAction<byte, TArg> reader, TArg arg, int bufferSize = 1024, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ReadOnlySpanAction<Byte, TArg> reader

The content reader.

TArg arg

The argument to be passed to the callback.

Int32 bufferSize

The size, in bytes, of the buffer used to copy bytes.

CancellationToken token

The token that can be used to cancel the operation.

Type Parameters
Name Description
TArg

The type of the argument to be passed to the callback.

Exceptions
Type Condition
OperationCanceledException

The operation has been canceled.

| Improve this Doc View Source

CopyToAsync(IBufferWriter<Byte>, Int32, CancellationToken)

Drains buffered content to the buffer asynchronously.

Declaration
public Task<long> CopyToAsync(IBufferWriter<byte> destination, int bufferSize = 1024, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
IBufferWriter<Byte> destination

The buffer to drain buffered contents to.

Int32 bufferSize

The size, in bytes, of the buffer used to copy bytes.

CancellationToken token

The token to monitor for cancellation requests.

Returns
Type Description
Task<Int64>

The number of copied elements..

Exceptions
Type Condition
OperationCanceledException

The operation has been canceled.

| Improve this Doc View Source

CopyToAsync(Stream, Int32, CancellationToken)

Drains buffered content to the stream asynchronously.

Declaration
public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken token)
Parameters
Type Name Description
Stream destination

The stream to drain buffered contents to.

Int32 bufferSize

The size, in bytes, of the buffer used to copy bytes.

CancellationToken token

The token to monitor for cancellation requests.

Returns
Type Description
Task

A task that represents the asynchronous copy operation.

Overrides
Stream.CopyToAsync(Stream, Int32, CancellationToken)
Exceptions
Type Condition
OperationCanceledException

The operation has been canceled.

| Improve this Doc View Source

CopyToAsync(Memory<Byte>, CancellationToken)

Drains buffered content to the memory block asynchronously.

Declaration
public Task<int> CopyToAsync(Memory<byte> output, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
Memory<Byte> output

The memory block used as a destination for copy operation.

CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
Task<Int32>

The actual number of copied elements.

| Improve this Doc View Source

CopyToAsync<TArg>(ReadOnlySpanAction<Byte, TArg>, TArg, Int32, CancellationToken)

Drains buffered content asynchronously.

Declaration
public Task CopyToAsync<TArg>(ReadOnlySpanAction<byte, TArg> reader, TArg arg, int bufferSize = 1024, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ReadOnlySpanAction<Byte, TArg> reader

The content reader.

TArg arg

The argument to be passed to the callback.

Int32 bufferSize

The size, in bytes, of the buffer used to copy bytes.

CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
Task

The task representing asynchronous execution of the operation.

Type Parameters
Name Description
TArg

The type of the argument to be passed to the callback.

Exceptions
Type Condition
OperationCanceledException

The operation has been canceled.

| Improve this Doc View Source

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing
Overrides
Stream.Dispose(Boolean)
| Improve this Doc View Source

DisposeAsync()

Declaration
public override ValueTask DisposeAsync()
Returns
Type Description
ValueTask
Overrides
Stream.DisposeAsync()
| Improve this Doc View Source

EndRead(IAsyncResult)

Declaration
public override int EndRead(IAsyncResult asyncResult)
Parameters
Type Name Description
IAsyncResult asyncResult
Returns
Type Description
Int32
Overrides
Stream.EndRead(IAsyncResult)
| Improve this Doc View Source

EndWrite(IAsyncResult)

Declaration
public override void EndWrite(IAsyncResult ar)
Parameters
Type Name Description
IAsyncResult ar
Overrides
Stream.EndWrite(IAsyncResult)
| Improve this Doc View Source

Flush()

Declaration
public override void Flush()
Overrides
Stream.Flush()
| Improve this Doc View Source

FlushAsync(CancellationToken)

Declaration
public override Task FlushAsync(CancellationToken token)
Parameters
Type Name Description
CancellationToken token
Returns
Type Description
Task
Overrides
Stream.FlushAsync(CancellationToken)
| Improve this Doc View Source

GetMemory(Int32)

Declaration
public Memory<byte> GetMemory(int sizeHint = 0)
Parameters
Type Name Description
Int32 sizeHint
Returns
Type Description
Memory<Byte>
| Improve this Doc View Source

GetSpan(Int32)

Declaration
public Span<byte> GetSpan(int sizeHint = 0)
Parameters
Type Name Description
Int32 sizeHint
Returns
Type Description
Span<Byte>
| Improve this Doc View Source

GetWrittenContent()

Returns the whole buffered content as a source of Memory<T> instances synchronously.

Declaration
public IMemoryOwner<byte> GetWrittenContent()
Returns
Type Description
IMemoryOwner<Byte>

The memory manager providing access to buffered content.

Remarks

Use GetWrittenContent(Range) if buffered content is too large.

Exceptions
Type Condition
InvalidOperationException

The memory manager is already obtained but not disposed.

OutOfMemoryException

The size of buffered content is too large and cannot be represented by Memory<T> instance.

| Improve this Doc View Source

GetWrittenContent(Int32)

Gets written content in the form of ReadOnlySequence<T> synchronously.

Declaration
public IReadOnlySequenceSource<byte> GetWrittenContent(int segmentSize)
Parameters
Type Name Description
Int32 segmentSize

The size of the contiguous segment of file to be mapped to memory.

Returns
Type Description
IReadOnlySequenceSource<Byte>

The factory of ReadOnlySequence<T> instances.

Exceptions
Type Condition
ArgumentOutOfRangeException

segmentSize is less than or equal to zero.

InvalidOperationException

The memory manager is already obtained but not disposed.

| Improve this Doc View Source

GetWrittenContent(Range)

Returns buffered content as a source of Memory<T> instances synchronously.

Declaration
public IMemoryOwner<byte> GetWrittenContent(Range range)
Parameters
Type Name Description
Range range

The range of buffered content to return.

Returns
Type Description
IMemoryOwner<Byte>

The memory manager providing access to buffered content.

Exceptions
Type Condition
InvalidOperationException

The memory manager is already obtained but not disposed.

ArgumentOutOfRangeException

range is invalid.

OutOfMemoryException

The size of buffered content is too large and cannot be represented by Memory<T> instance.

| Improve this Doc View Source

GetWrittenContentAsStream()

Gets written content as read-only stream.

Declaration
public Stream GetWrittenContentAsStream()
Returns
Type Description
Stream

Read-only stream representing the written content.

Exceptions
Type Condition
InvalidOperationException

The stream is already obtained but not disposed.

| Improve this Doc View Source

GetWrittenContentAsStreamAsync(CancellationToken)

Gets written content as read-only stream asynchronously.

Declaration
public ValueTask<Stream> GetWrittenContentAsStreamAsync(CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
ValueTask<Stream>

Read-only stream representing the written content.

Exceptions
Type Condition
InvalidOperationException

The stream is already obtained but not disposed.

OperationCanceledException

The operation has been canceled.

| Improve this Doc View Source

GetWrittenContentAsync(Int32, CancellationToken)

Gets written content in the form of ReadOnlySequence<T> asynchronously.

Declaration
public ValueTask<IReadOnlySequenceSource<byte>> GetWrittenContentAsync(int segmentSize, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
Int32 segmentSize

The size of the contiguous segment of file to be mapped to memory.

CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
ValueTask<IReadOnlySequenceSource<Byte>>

The factory of ReadOnlySequence<T> instances.

Exceptions
Type Condition
ArgumentOutOfRangeException

segmentSize is less than or equal to zero.

OperationCanceledException

The operation has been canceled.

| Improve this Doc View Source

GetWrittenContentAsync(Range, CancellationToken)

Returns buffered content as a source of Memory<T> instances asynchronously.

Declaration
public ValueTask<IMemoryOwner<byte>> GetWrittenContentAsync(Range range, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
Range range

The range of buffered content to return.

CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
ValueTask<IMemoryOwner<Byte>>

The memory manager providing access to buffered content.

Exceptions
Type Condition
InvalidOperationException

The memory manager is already obtained but not disposed.

OperationCanceledException

The operation has been canceled.

ArgumentOutOfRangeException

range is invalid.

OutOfMemoryException

The size of buffered content is too large and cannot be represented by Memory<T> instance.

| Improve this Doc View Source

GetWrittenContentAsync(CancellationToken)

Returns the whole buffered content as a source of Memory<T> instances asynchronously.

Declaration
public ValueTask<IMemoryOwner<byte>> GetWrittenContentAsync(CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
ValueTask<IMemoryOwner<Byte>>

The memory manager providing access to buffered content.

Remarks

Use GetWrittenContentAsync(Range, CancellationToken) if buffered content is too large.

Exceptions
Type Condition
InvalidOperationException

The memory manager is already obtained but not disposed.

OperationCanceledException

The operation has been canceled.

OutOfMemoryException

The size of buffered content is too large and cannot be represented by Memory<T> instance.

| Improve this Doc View Source

Read(Byte[], Int32, Int32)

Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type Name Description
Byte[] buffer
Int32 offset
Int32 count
Returns
Type Description
Int32
Overrides
Stream.Read(Byte[], Int32, Int32)
| Improve this Doc View Source

Read(Span<Byte>)

Declaration
public override int Read(Span<byte> buffer)
Parameters
Type Name Description
Span<Byte> buffer
Returns
Type Description
Int32
Overrides
Stream.Read(Span<Byte>)
| Improve this Doc View Source

ReadAsync(Byte[], Int32, Int32, CancellationToken)

Declaration
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken token)
Parameters
Type Name Description
Byte[] buffer
Int32 offset
Int32 count
CancellationToken token
Returns
Type Description
Task<Int32>
Overrides
Stream.ReadAsync(Byte[], Int32, Int32, CancellationToken)
| Improve this Doc View Source

ReadAsync(Memory<Byte>, CancellationToken)

Declaration
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken token)
Parameters
Type Name Description
Memory<Byte> buffer
CancellationToken token
Returns
Type Description
ValueTask<Int32>
Overrides
Stream.ReadAsync(Memory<Byte>, CancellationToken)
| Improve this Doc View Source

ReadByte()

Declaration
public override int ReadByte()
Returns
Type Description
Int32
Overrides
Stream.ReadByte()
| Improve this Doc View Source

Seek(Int64, SeekOrigin)

Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Type Name Description
Int64 offset
SeekOrigin origin
Returns
Type Description
Int64
Overrides
Stream.Seek(Int64, SeekOrigin)
| Improve this Doc View Source

SetLength(Int64)

Declaration
public override void SetLength(long value)
Parameters
Type Name Description
Int64 value
Overrides
Stream.SetLength(Int64)
| Improve this Doc View Source

TryGetWrittenContent(out ReadOnlyMemory<Byte>)

Attempts to get written content if it is located in memory.

Declaration
public bool TryGetWrittenContent(out ReadOnlyMemory<byte> content)
Parameters
Type Name Description
ReadOnlyMemory<Byte> content

The written content.

Returns
Type Description
Boolean

true if whole content is in memory and available without allocation of MemoryManager<T>; otherwise, false.

Remarks

If this method returns false then use GetWrittenContent(), GetWrittenContent(Range), GetWrittenContentAsync(CancellationToken) or GetWrittenContentAsync(Range, CancellationToken) to obtain the content.

| Improve this Doc View Source

Write(Byte[], Int32, Int32)

Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Type Name Description
Byte[] buffer
Int32 offset
Int32 count
Overrides
Stream.Write(Byte[], Int32, Int32)
| Improve this Doc View Source

Write(ReadOnlySpan<Byte>)

Declaration
public override void Write(ReadOnlySpan<byte> buffer)
Parameters
Type Name Description
ReadOnlySpan<Byte> buffer
Overrides
Stream.Write(ReadOnlySpan<Byte>)
| Improve this Doc View Source

WriteAsync(Byte[], Int32, Int32, CancellationToken)

Declaration
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken token)
Parameters
Type Name Description
Byte[] buffer
Int32 offset
Int32 count
CancellationToken token
Returns
Type Description
Task
Overrides
Stream.WriteAsync(Byte[], Int32, Int32, CancellationToken)
| Improve this Doc View Source

WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)

Declaration
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ReadOnlyMemory<Byte> buffer
CancellationToken token
Returns
Type Description
ValueTask
Overrides
Stream.WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)
| Improve this Doc View Source

WriteByte(Byte)

Declaration
public override void WriteByte(byte value)
Parameters
Type Name Description
Byte value
Overrides
Stream.WriteByte(Byte)

Implements

System.IAsyncDisposable
System.IDisposable
IFlushableBufferWriter<T>
System.Buffers.IBufferWriter<T>
IFlushable
IGrowableBuffer<>

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
BufferWriter.Write<T>(IBufferWriter<Byte>, T)
BufferWriter.Write<T>(IBufferWriter<T>, ReadOnlySequence<T>, CancellationToken)
BufferWriter.WriteInt64(IBufferWriter<Byte>, Int64, Boolean)
BufferWriter.WriteUInt64(IBufferWriter<Byte>, UInt64, Boolean)
BufferWriter.WriteInt32(IBufferWriter<Byte>, Int32, Boolean)
BufferWriter.WriteUInt32(IBufferWriter<Byte>, UInt32, Boolean)
BufferWriter.WriteInt16(IBufferWriter<Byte>, Int16, Boolean)
BufferWriter.WriteUInt16(IBufferWriter<Byte>, UInt16, Boolean)
BufferWriter.WriteString(IBufferWriter<Byte>, ReadOnlySpan<Char>, EncodingContext, Int32, Nullable<StringLengthEncoding>)
BufferWriter.WriteInt64(IBufferWriter<Byte>, Int64, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteUInt64(IBufferWriter<Byte>, UInt64, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteInt32(IBufferWriter<Byte>, Int32, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteUInt32(IBufferWriter<Byte>, UInt32, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteInt16(IBufferWriter<Byte>, Int16, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteUInt16(IBufferWriter<Byte>, UInt16, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteSByte(IBufferWriter<Byte>, SByte, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteByte(IBufferWriter<Byte>, Byte, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteDecimal(IBufferWriter<Byte>, Decimal, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteSingle(IBufferWriter<Byte>, Single, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteDouble(IBufferWriter<Byte>, Double, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteGuid(IBufferWriter<Byte>, Guid, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, Int32)
BufferWriter.WriteDateTime(IBufferWriter<Byte>, DateTime, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteDateTimeOffset(IBufferWriter<Byte>, DateTimeOffset, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.WriteTimeSpan(IBufferWriter<Byte>, TimeSpan, StringLengthEncoding, EncodingContext, ReadOnlySpan<Char>, IFormatProvider, Int32)
BufferWriter.Write<T>(IBufferWriter<T>, T[], Int32, Int32)
StreamExtensions.WriteString(Stream, ReadOnlySpan<Char>, EncodingContext, Span<Byte>, Nullable<StringLengthEncoding>)
StreamExtensions.WriteString(Stream, ReadOnlySpan<Char>, Encoding, Nullable<StringLengthEncoding>)
StreamExtensions.WriteByte(Stream, Byte, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteSByte(Stream, SByte, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteInt16(Stream, Int16, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteUInt16(Stream, UInt16, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteInt32(Stream, Int32, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteUInt32(Stream, UInt32, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteInt64(Stream, Int64, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteUInt64(Stream, UInt64, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteSingle(Stream, Single, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteDouble(Stream, Double, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteDecimal(Stream, Decimal, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteGuid(Stream, Guid, StringLengthEncoding, Encoding, ReadOnlySpan<Char>)
StreamExtensions.WriteDateTime(Stream, DateTime, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteDateTimeOffset(Stream, DateTimeOffset, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteTimeSpan(Stream, TimeSpan, StringLengthEncoding, Encoding, ReadOnlySpan<Char>, IFormatProvider)
StreamExtensions.WriteStringAsync(Stream, ReadOnlyMemory<Char>, EncodingContext, Memory<Byte>, Nullable<StringLengthEncoding>, CancellationToken)
StreamExtensions.WriteStringAsync(Stream, ReadOnlyMemory<Char>, Encoding, Nullable<StringLengthEncoding>, CancellationToken)
StreamExtensions.WriteByteAsync(Stream, Byte, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteByteAsync(Stream, Byte, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteSByteAsync(Stream, SByte, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteSByteAsync(Stream, SByte, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteInt16Async(Stream, Int16, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteInt16Async(Stream, Int16, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteUInt16Async(Stream, UInt16, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteUInt16Async(Stream, UInt16, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteInt32Async(Stream, Int32, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteInt32Async(Stream, Int32, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteUInt32Async(Stream, UInt32, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteUInt32Async(Stream, UInt32, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteInt64Async(Stream, Int64, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteInt64Async(Stream, Int64, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteUInt64Async(Stream, UInt64, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteUInt64Async(Stream, UInt64, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteSingleAsync(Stream, Single, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteSingleAsync(Stream, Single, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteDoubleAsync(Stream, Double, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteDoubleAsync(Stream, Double, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteDecimalAsync(Stream, Decimal, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteDecimalAsync(Stream, Decimal, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteGuidAsync(Stream, Guid, StringLengthEncoding, EncodingContext, Memory<Byte>, String, CancellationToken)
StreamExtensions.WriteGuidAsync(Stream, Guid, StringLengthEncoding, EncodingContext, String, CancellationToken)
StreamExtensions.WriteDateTimeAsync(Stream, DateTime, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteDateTimeAsync(Stream, DateTime, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteDateTimeOffsetAsync(Stream, DateTimeOffset, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteDateTimeOffsetAsync(Stream, DateTimeOffset, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteTimeSpanAsync(Stream, TimeSpan, StringLengthEncoding, EncodingContext, Memory<Byte>, String, IFormatProvider, CancellationToken)
StreamExtensions.WriteTimeSpanAsync(Stream, TimeSpan, StringLengthEncoding, EncodingContext, String, IFormatProvider, CancellationToken)
StreamExtensions.Write(Stream, ReadOnlySequence<Byte>, CancellationToken)
StreamExtensions.WriteAsync(Stream, ReadOnlySequence<Byte>, CancellationToken)
StreamExtensions.ReadString(Stream, Int32, DecodingContext, Span<Byte>)
StreamExtensions.ReadByte(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadSByte(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadInt16(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadUInt16(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadInt32(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadUInt32(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadInt64(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadUInt64(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadSingle(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadDouble(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadDecimal(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, NumberStyles, IFormatProvider)
StreamExtensions.ReadGuid(Stream, StringLengthEncoding, DecodingContext, Span<Byte>)
StreamExtensions.ReadGuid(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, String)
StreamExtensions.ReadDateTime(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, DateTimeStyles, IFormatProvider)
StreamExtensions.ReadDateTime(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, String[], DateTimeStyles, IFormatProvider)
StreamExtensions.ReadDateTimeOffset(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, DateTimeStyles, IFormatProvider)
StreamExtensions.ReadDateTimeOffset(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, String[], DateTimeStyles, IFormatProvider)
StreamExtensions.ReadTimeSpan(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, IFormatProvider)
StreamExtensions.ReadTimeSpan(Stream, StringLengthEncoding, DecodingContext, Span<Byte>, String[], TimeSpanStyles, IFormatProvider)
StreamExtensions.ReadString(Stream, StringLengthEncoding, DecodingContext, Span<Byte>)
StreamExtensions.ReadString(Stream, Int32, Encoding)
StreamExtensions.ReadString(Stream, StringLengthEncoding, Encoding)
StreamExtensions.ReadStringAsync(Stream, Int32, DecodingContext, Memory<Byte>, CancellationToken)
StreamExtensions.ReadStringAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, CancellationToken)
StreamExtensions.ReadStringAsync(Stream, Int32, Encoding, CancellationToken)
StreamExtensions.ReadStringAsync(Stream, StringLengthEncoding, Encoding, CancellationToken)
StreamExtensions.ReadByteAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadSByteAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadInt16Async(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadUInt16Async(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadInt32Async(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadUInt32Async(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadInt64Async(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadUInt64Async(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadSingleAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDoubleAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDecimalAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadGuidAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, CancellationToken)
StreamExtensions.ReadGuidAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, String, CancellationToken)
StreamExtensions.ReadDateTimeAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDateTimeAsync(Stream, StringLengthEncoding, DecodingContext, String[], Memory<Byte>, DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDateTimeOffsetAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDateTimeOffsetAsync(Stream, StringLengthEncoding, DecodingContext, String[], Memory<Byte>, DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadTimeSpanAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, IFormatProvider, CancellationToken)
StreamExtensions.ReadTimeSpanAsync(Stream, StringLengthEncoding, DecodingContext, Memory<Byte>, String[], TimeSpanStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadByteAsync(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadSByteAsync(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadInt16Async(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadUInt16Async(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadInt32Async(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadUInt32Async(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadInt64Async(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadUInt64Async(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadSingleAsync(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDoubleAsync(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDecimalAsync(Stream, StringLengthEncoding, DecodingContext, NumberStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadGuidAsync(Stream, StringLengthEncoding, DecodingContext, CancellationToken)
StreamExtensions.ReadGuidAsync(Stream, StringLengthEncoding, DecodingContext, String, CancellationToken)
StreamExtensions.ReadDateTimeAsync(Stream, StringLengthEncoding, DecodingContext, DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDateTimeAsync(Stream, StringLengthEncoding, DecodingContext, String[], DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDateTimeOffsetAsync(Stream, StringLengthEncoding, DecodingContext, DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadDateTimeOffsetAsync(Stream, StringLengthEncoding, DecodingContext, String[], DateTimeStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadTimeSpanAsync(Stream, StringLengthEncoding, DecodingContext, IFormatProvider, CancellationToken)
StreamExtensions.ReadTimeSpanAsync(Stream, StringLengthEncoding, DecodingContext, String[], TimeSpanStyles, IFormatProvider, CancellationToken)
StreamExtensions.ReadBlock(Stream, Span<Byte>)
StreamExtensions.Read<T>(Stream)
StreamExtensions.ReadBlockAsync(Stream, Memory<Byte>, CancellationToken)
StreamExtensions.ReadAsync<T>(Stream, Memory<Byte>, CancellationToken)
StreamExtensions.ReadAsync<T>(Stream, CancellationToken)
StreamExtensions.Write<T>(Stream, T)
StreamExtensions.WriteAsync<T>(Stream, T, Memory<Byte>, CancellationToken)
StreamExtensions.WriteAsync<T>(Stream, T, CancellationToken)
StreamExtensions.WriteAsync<TArg>(Stream, Func<TArg, CancellationToken, ValueTask<ReadOnlyMemory<Byte>>>, TArg, CancellationToken)
StreamExtensions.CopyToAsync(Stream, Stream, Memory<Byte>, CancellationToken)
StreamExtensions.CopyTo(Stream, Stream, Span<Byte>, CancellationToken)
StreamExtensions.AsBufferWriter(Stream, Nullable<MemoryAllocator<Byte>>)
StreamExtensions.Read<TArg>(Stream, ReadOnlySpanAction<Byte, TArg>, TArg, Span<Byte>, CancellationToken)
StreamExtensions.Read<TArg>(Stream, ReadOnlySpanAction<Byte, TArg>, TArg, Int32, CancellationToken)
StreamExtensions.ReadAsync<TArg>(Stream, ReadOnlySpanAction<Byte, TArg>, TArg, Memory<Byte>, CancellationToken)
StreamExtensions.ReadAsync<TArg>(Stream, ReadOnlySpanAction<Byte, TArg>, TArg, Int32, CancellationToken)
StreamExtensions.ReadAsync<TArg>(Stream, Func<ReadOnlyMemory<Byte>, TArg, CancellationToken, ValueTask>, TArg, Memory<Byte>, CancellationToken)
StreamExtensions.ReadAsync<TArg>(Stream, Func<ReadOnlyMemory<Byte>, TArg, CancellationToken, ValueTask>, TArg, Int32, CancellationToken)
StreamExtensions.CopyToAsync(Stream, IBufferWriter<Byte>, Int32, CancellationToken)
StreamExtensions.CopyTo(Stream, IBufferWriter<Byte>, Int32, CancellationToken)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX