FileBufferingReadStream Constructors

Definition

Overloads

FileBufferingReadStream(Stream, Int32)

Initializes a new instance of FileBufferingReadStream.

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, Func<String>)

Initializes a new instance of FileBufferingReadStream.

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, String)

Initializes a new instance of FileBufferingReadStream.

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, Func<String>, ArrayPool<Byte>)

Initializes a new instance of FileBufferingReadStream.

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, String, ArrayPool<Byte>)

Initializes a new instance of FileBufferingReadStream.

FileBufferingReadStream(Stream, Int32)

Initializes a new instance of FileBufferingReadStream.

public:
 FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer)

Parameters

inner
Stream

The wrapping Stream.

memoryThreshold
Int32

The maximum size to buffer in memory.

Applies to

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, Func<String>)

Source:
FileBufferingReadStream.cs
Source:
FileBufferingReadStream.cs

Initializes a new instance of FileBufferingReadStream.

public:
 FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, Func<System::String ^> ^ tempFileDirectoryAccessor);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, Func<string> tempFileDirectoryAccessor);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * Func<string> -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectoryAccessor As Func(Of String))

Parameters

inner
Stream

The wrapping Stream.

memoryThreshold
Int32

The maximum size to buffer in memory.

bufferLimit
Nullable<Int64>

The maximum size that will be buffered before this Stream throws.

tempFileDirectoryAccessor
Func<String>

Provides the temporary directory to which files are buffered to.

Applies to

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, String)

Source:
FileBufferingReadStream.cs
Source:
FileBufferingReadStream.cs

Initializes a new instance of FileBufferingReadStream.

public:
 FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, System::String ^ tempFileDirectory);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, string tempFileDirectory);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * string -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectory As String)

Parameters

inner
Stream

The wrapping Stream.

memoryThreshold
Int32

The maximum size to buffer in memory.

bufferLimit
Nullable<Int64>

The maximum size that will be buffered before this Stream throws.

tempFileDirectory
String

The temporary directory to which files are buffered to.

Applies to

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, Func<String>, ArrayPool<Byte>)

Source:
FileBufferingReadStream.cs
Source:
FileBufferingReadStream.cs

Initializes a new instance of FileBufferingReadStream.

public:
 FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, Func<System::String ^> ^ tempFileDirectoryAccessor, System::Buffers::ArrayPool<System::Byte> ^ bytePool);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, Func<string> tempFileDirectoryAccessor, System.Buffers.ArrayPool<byte> bytePool);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * Func<string> * System.Buffers.ArrayPool<byte> -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectoryAccessor As Func(Of String), bytePool As ArrayPool(Of Byte))

Parameters

inner
Stream

The wrapping Stream.

memoryThreshold
Int32

The maximum size to buffer in memory.

bufferLimit
Nullable<Int64>

The maximum size that will be buffered before this Stream throws.

tempFileDirectoryAccessor
Func<String>

Provides the temporary directory to which files are buffered to.

bytePool
ArrayPool<Byte>

The ArrayPool<T> to use.

Applies to

FileBufferingReadStream(Stream, Int32, Nullable<Int64>, String, ArrayPool<Byte>)

Source:
FileBufferingReadStream.cs
Source:
FileBufferingReadStream.cs

Initializes a new instance of FileBufferingReadStream.

public:
 FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, System::String ^ tempFileDirectory, System::Buffers::ArrayPool<System::Byte> ^ bytePool);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, string tempFileDirectory, System.Buffers.ArrayPool<byte> bytePool);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * string * System.Buffers.ArrayPool<byte> -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectory As String, bytePool As ArrayPool(Of Byte))

Parameters

inner
Stream

The wrapping Stream.

memoryThreshold
Int32

The maximum size to buffer in memory.

bufferLimit
Nullable<Int64>

The maximum size that will be buffered before this Stream throws.

tempFileDirectory
String

The temporary directory to which files are buffered to.

bytePool
ArrayPool<Byte>

The ArrayPool<T> to use.

Applies to