Show / Hide Table of Contents

Class StreamView

This is some kind of a "View" to an underlying stream

Inheritance
Object
Stream
StreamView
Inherited Members
Stream.Null
Stream.CopyTo(Stream)
Stream.CopyTo(Stream, Int32)
Stream.CopyToAsync(Stream)
Stream.CopyToAsync(Stream, Int32)
Stream.CopyToAsync(Stream, Int32, CancellationToken)
Stream.Dispose()
Stream.FlushAsync()
Stream.FlushAsync(CancellationToken)
Stream.ReadAsync(Byte[], Int32, Int32)
Stream.ReadAsync(Byte[], Int32, Int32, CancellationToken)
Stream.ReadByte()
Stream.WriteAsync(Byte[], Int32, Int32)
Stream.WriteAsync(Byte[], Int32, Int32, CancellationToken)
Stream.WriteByte(Byte)
Stream.CanTimeout
Stream.ReadTimeout
Stream.WriteTimeout
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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
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

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

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
Type Description
Task<StreamView>

The new stream view

Remarks

The baseStream must be at position 0.

| 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

Flush()

Declaration
public override void Flush()
Overrides
Stream.Flush()
| 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
Type Description
Int32
Overrides
Stream.Read(Byte[], Int32, Int32)
| 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

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
Stream.Write(Byte[], Int32, Int32)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX