NanoByte.Common  2.6.1
NanoByte.Common.Streams.OffsetStream Class Reference

This wrapper stream applies a constant byte offset to all access to an underlying stream. More...

Inheritance diagram for NanoByte.Common.Streams.OffsetStream:

Public Member Functions

 OffsetStream (Stream baseStream, long offset)
 Creates a new offset stream More...
 
override int Read (byte[] buffer, int offset, int count)
 
override void Write (byte[] buffer, int offset, int count)
 
override int ReadByte ()
 
override void WriteByte (byte value)
 
override void Flush ()
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
override void Close ()
 

Properties

override bool CanRead [get]
 
override bool CanWrite [get]
 
override bool CanSeek [get]
 
override long Length [get]
 
override long Position [get, set]
 

Detailed Description

This wrapper stream applies a constant byte offset to all access to an underlying stream.

Constructor & Destructor Documentation

◆ OffsetStream()

NanoByte.Common.Streams.OffsetStream.OffsetStream ( Stream  baseStream,
long  offset 
)
inline

Creates a new offset stream

Parameters
baseStreamUnderlying stream for which all access will be offset.
offsetNumber of bytes to offset the baseStream .

The documentation for this class was generated from the following file: