Skip to main content

Class LimitedMemoryStream

Namespace: Aurigma.DesignAtoms.Common
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class LimitedMemoryStream : Stream, IDisposable

Inheritance: System.Object -> System.MarshalByRefObject -> System.IO.Stream -> LimitedMemoryStream

Implements

  • System.IDisposable

Inherited Members

  • System.IO.Stream.Null
  • System.IO.Stream.CopyToAsync(System.IO.Stream)
  • System.IO.Stream.CopyToAsync(System.IO.Stream,System.Int32)
  • System.IO.Stream.CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)
  • System.IO.Stream.CopyTo(System.IO.Stream)
  • System.IO.Stream.CopyTo(System.IO.Stream,System.Int32)
  • System.IO.Stream.Close
  • System.IO.Stream.Dispose(System.Boolean)
  • System.IO.Stream.FlushAsync
  • System.IO.Stream.FlushAsync(System.Threading.CancellationToken)
  • System.IO.Stream.CreateWaitHandle
  • System.IO.Stream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)
  • System.IO.Stream.EndRead(System.IAsyncResult)
  • System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)
  • System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
  • System.IO.Stream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)
  • System.IO.Stream.EndWrite(System.IAsyncResult)
  • System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)
  • System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
  • System.IO.Stream.ReadByte
  • System.IO.Stream.WriteByte(System.Byte)
  • System.IO.Stream.Synchronized(System.IO.Stream)
  • System.IO.Stream.ObjectInvariant
  • System.IO.Stream.CanTimeout
  • System.IO.Stream.ReadTimeout
  • System.IO.Stream.WriteTimeout
  • System.MarshalByRefObject.MemberwiseClone(System.Boolean)
  • System.MarshalByRefObject.GetLifetimeService
  • System.MarshalByRefObject.InitializeLifetimeService
  • System.MarshalByRefObject.CreateObjRef(System.Type)
  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors

LimitedMemoryStream

public LimitedMemoryStream(string filePath, long maxSizeInBytes)

Properties

CanRead

public override bool CanRead { get; }

CanSeek

public override bool CanSeek { get; }

CanWrite

public override bool CanWrite { get; }

Length

public override long Length { get; }

Position

public override long Position { get; set; }

Methods

Flush

public override void Flush()
Overrides
  • System.IO.Stream.Flush

Seek

public override long Seek(long offset, SeekOrigin origin)
Parameters
TypeNameDescription
System.Int64offset
System.IO.SeekOriginorigin
Returns

System.Int64

Overrides
  • System.IO.Stream.Seek(System.Int64,System.IO.SeekOrigin)

SetLength

public override void SetLength(long value)
Parameters
TypeNameDescription
System.Int64value
Overrides
  • System.IO.Stream.SetLength(System.Int64)

Read

public override int Read(byte[] buffer, int offset, int count)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
System.Int32count
Returns

System.Int32

Overrides
  • System.IO.Stream.Read(System.Byte[],System.Int32,System.Int32)

Write

public override void Write(byte[] buffer, int offset, int count)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
System.Int32count
Overrides
  • System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32)

Dispose

public void Dispose()
Was this page helpful?