Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.Streams.SlowStream

Summary

Provides methods to read from a stream in small chunks at a time. Optionally suspends the thread for a specified interval on every chunk.

Constructors

SlowStream(Stream stream, int chunkSize = 1024)
Initialises a new SlowStream instance.

Instance methods

void
  • Overrides: Stream.Close()
These members are not documented.
void
  • Overrides: Stream.Flush()
int
Read(byte[] buffer, int offset, int count)
  • Overrides: Stream.Read(byte[], int, int)
Reads at most SlowStream.ChunkSize bytes from the underlying stream.
long
Seek(long offset, SeekOrigin origin)
  • Overrides: Stream.Seek(long, SeekOrigin)
These members are not documented.
void
SetLength(long value)
  • Overrides: Stream.SetLength(long)
void
Write(byte[] buffer, int offset, int count)
  • Overrides: Stream.Write(byte[], int, int)

Instance properties

bool
  • Overrides: Stream.CanRead
These members are not documented.
bool
  • Overrides: Stream.CanSeek
bool
  • Overrides: Stream.CanWrite
intGets or sets the current chunk size (number of bytes read at a time).
long
  • Overrides: Stream.Length
These members are not documented.
long
  • Overrides: Stream.Position
intGets or sets the current interval, in ms, for which the reading thread is suspended on every chunk. Defaults to 0, which means no delay.