Class StreamView
This is some kind of a "View" to an underlying stream
Namespace:FubarDev.WebDavServer.Utils
Assembly:FubarDev.WebDavServer.dll
Syntax
public class StreamView : Stream, IDisposable
Properties
|
Improve this Doc
View Source
CanRead
Declaration
public override bool CanRead { get; }
Property Value
Overrides
|
Improve this Doc
View Source
CanSeek
Declaration
public override bool CanSeek { get; }
Property Value
Overrides
|
Improve this Doc
View Source
CanWrite
Declaration
public override bool CanWrite { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Length
Declaration
public override long Length { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Position
Declaration
public override long Position { get; set; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
CreateAsync(Stream, Int64, Int64, CancellationToken)
Creates a new stream view
Declaration
public static Task<StreamView> CreateAsync([NotNull] Stream baseStream, long position, long length, CancellationToken ct)
Parameters
Type |
Name |
Description |
Stream |
baseStream |
The underlying stream
|
Int64 |
position |
The start position
|
Int64 |
length |
The length of the data to be read from the underlying stream
|
CancellationToken |
ct |
The cancellation token
|
Returns
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
Flush()
Declaration
public override void Flush()
Overrides
|
Improve this Doc
View Source
Read(Byte[], Int32, Int32)
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
Int32 |
offset |
|
Int32 |
count |
|
Returns
Overrides
|
Improve this Doc
View Source
Seek(Int64, SeekOrigin)
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
SetLength(Int64)
Declaration
public override void SetLength(long value)
Parameters
Type |
Name |
Description |
Int64 |
value |
|
Overrides
|
Improve this Doc
View Source
Write(Byte[], Int32, Int32)
Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
Int32 |
offset |
|
Int32 |
count |
|
Overrides