Skip to content

RageLib.Data.PartialStream

Jérémie N'gadi edited this page Aug 5, 2018 · 3 revisions

Represents a part of a stream.

namespace: RageLib.Data

Inheritance Hierarchy

  • Stream
    • PartialStream

Syntax

public class PartialStream

Constructors

prototype description
method PartialStream (Stream baseStream, GetOffsetDelegate getOffsetDelegate, GetLengthDelegate getLengthDelegate, SetLengthDelegate setLengthDelegate=null) __

Properties

name description
property CanRead Gets a value indicating whether the stream supports reading.
property CanSeek Gets a value indicating whether the stream supports seeking.
property CanWrite Gets a value indicating whether the stream supports writing.
property Length Gets the length of the stream.
property Position Gets or sets the position within the stream.

Methods

prototype description
method void Flush() Clears all buffers for the stream.
method int Read(byte[] buffer, int offset, int count) Reads a sequence of bytes from the stream.
method long Seek(long offset, SeekOrigin origin) Sets the position within the stream.
method void SetLength(long value) Sets the length of the stream.
method void Write(byte[] buffer, int offset, int count) Writes a sequence of bytes to the stream.

Events

name description
Clone this wiki locally