Interface IFileStream
Assembly: ZoneTree.dll
Syntax
public interface IFileStream : IDisposable
Properties
|
Improve this Doc
View Source
CanRead
Declaration
Property Value
|
Improve this Doc
View Source
CanSeek
Declaration
Property Value
|
Improve this Doc
View Source
CanTimeout
Declaration
Property Value
|
Improve this Doc
View Source
CanWrite
Declaration
Property Value
|
Improve this Doc
View Source
FilePath
Declaration
Property Value
|
Improve this Doc
View Source
Length
Declaration
Property Value
|
Improve this Doc
View Source
Position
Declaration
long Position { get; set; }
Property Value
|
Improve this Doc
View Source
ReadTimeout
Declaration
int ReadTimeout { get; set; }
Property Value
|
Improve this Doc
View Source
WriteTimeout
Declaration
int WriteTimeout { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
BeginRead(byte[], int, int, AsyncCallback, object)
Declaration
IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
Parameters
Returns
|
Improve this Doc
View Source
BeginWrite(byte[], int, int, AsyncCallback, object)
Declaration
IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
Parameters
Returns
|
Improve this Doc
View Source
Close()
Declaration
|
Improve this Doc
View Source
CopyTo(Stream)
Declaration
void CopyTo(Stream destination)
Parameters
Type |
Name |
Description |
Stream |
destination |
|
|
Improve this Doc
View Source
CopyTo(Stream, int)
Declaration
void CopyTo(Stream destination, int bufferSize)
Parameters
Type |
Name |
Description |
Stream |
destination |
|
int |
bufferSize |
|
|
Improve this Doc
View Source
CopyToAsync(Stream)
Declaration
Task CopyToAsync(Stream destination)
Parameters
Type |
Name |
Description |
Stream |
destination |
|
Returns
|
Improve this Doc
View Source
CopyToAsync(Stream, int)
Declaration
Task CopyToAsync(Stream destination, int bufferSize)
Parameters
Type |
Name |
Description |
Stream |
destination |
|
int |
bufferSize |
|
Returns
|
Improve this Doc
View Source
CopyToAsync(Stream, int, CancellationToken)
Declaration
Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Parameters
Returns
|
Improve this Doc
View Source
CopyToAsync(Stream, CancellationToken)
Declaration
Task CopyToAsync(Stream destination, CancellationToken cancellationToken)
Parameters
Returns
|
Improve this Doc
View Source
DisposeAsync()
Declaration
Returns
|
Improve this Doc
View Source
EndRead(IAsyncResult)
Declaration
int EndRead(IAsyncResult asyncResult)
Parameters
Returns
|
Improve this Doc
View Source
EndWrite(IAsyncResult)
Declaration
void EndWrite(IAsyncResult asyncResult)
Parameters
|
Improve this Doc
View Source
Flush()
Declaration
|
Improve this Doc
View Source
Flush(bool)
Declaration
void Flush(bool flushToDisk)
Parameters
Type |
Name |
Description |
bool |
flushToDisk |
|
|
Improve this Doc
View Source
FlushAsync()
Declaration
Returns
|
Improve this Doc
View Source
FlushAsync(CancellationToken)
Declaration
Task FlushAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Improve this Doc
View Source
Read(byte[], int, int)
Declaration
int Read(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
Returns
|
Improve this Doc
View Source
Read(Span<byte>)
Declaration
int Read(Span<byte> buffer)
Parameters
Returns
|
Improve this Doc
View Source
ReadAsync(byte[], int, int)
Declaration
Task<int> ReadAsync(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
Returns
|
Improve this Doc
View Source
ReadAsync(byte[], int, int, CancellationToken)
Declaration
Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Returns
|
Improve this Doc
View Source
ReadAsync(Memory<byte>, CancellationToken)
Declaration
ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default)
Parameters
Returns
|
Improve this Doc
View Source
ReadByte()
Declaration
Returns
|
Improve this Doc
View Source
ReadFaster(byte[], int, int)
Custom ReadExactly method that does not use internal buffer.
Declaration
int ReadFaster(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
Returns
|
Improve this Doc
View Source
Seek(long, SeekOrigin)
Declaration
long Seek(long offset, SeekOrigin origin)
Parameters
Returns
|
Improve this Doc
View Source
SetLength(long)
Declaration
void SetLength(long value)
Parameters
Type |
Name |
Description |
long |
value |
|
|
Improve this Doc
View Source
ToStream()
Declaration
Returns
|
Improve this Doc
View Source
Write(byte[], int, int)
Declaration
void Write(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
|
Improve this Doc
View Source
Write(ReadOnlySpan<byte>)
Declaration
void Write(ReadOnlySpan<byte> buffer)
Parameters
|
Improve this Doc
View Source
WriteAsync(byte[], int, int)
Declaration
Task WriteAsync(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
Returns
|
Improve this Doc
View Source
WriteAsync(byte[], int, int, CancellationToken)
Declaration
Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Returns
|
Improve this Doc
View Source
WriteAsync(ReadOnlyMemory<byte>, CancellationToken)
Declaration
ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
Parameters
Returns
|
Improve this Doc
View Source
WriteByte(byte)
Declaration
void WriteByte(byte value)
Parameters
Type |
Name |
Description |
byte |
value |
|