Crosstales.Common.Util.MemoryCacheStream Class Reference

Memory cache stream. More...

Inheritance diagram for Crosstales.Common.Util.MemoryCacheStream:

Public Member Functions

 MemoryCacheStream (int cacheSize=64 *Crosstales.Common.Util.BaseConstants.FACTOR_KB, int maxCacheSize=64 *Crosstales.Common.Util.BaseConstants.FACTOR_MB)
 Constructor with a specified cache size. More...
 
override void Flush ()
 
override long Seek (long offset, System.IO.SeekOrigin origin)
 
override void SetLength (long value)
 
override int Read (byte[] buffer, int offset, int count)
 
override void Write (byte[] buffer, int offset, int count)
 

Public Attributes

override bool CanRead => true
 Gets a flag flag that indicates if the stream is readable (always true). More...
 
override bool CanSeek => true
 Gets a flag flag that indicates if the stream is seekable (always true). More...
 
override bool CanWrite => true
 Gets a flag flag that indicates if the stream is seekable (always true). More...
 
override long Length => _length
 Gets the current stream length. More...
 

Properties

override long Position [get, set]
 Gets or sets the current stream position. More...
 

Detailed Description

Memory cache stream.

Constructor & Destructor Documentation

◆ MemoryCacheStream()

Crosstales.Common.Util.MemoryCacheStream.MemoryCacheStream ( int  cacheSize = 64 * Crosstales.Common.Util.BaseConstants.FACTOR_KB,
int  maxCacheSize = 64 * Crosstales.Common.Util.BaseConstants.FACTOR_MB 
)

Constructor with a specified cache size.

Parameters
cacheSizeCache size of the stream in bytes.
maxCacheSizeMaximum cache size of the stream in bytes.

Member Data Documentation

◆ CanRead

override bool Crosstales.Common.Util.MemoryCacheStream.CanRead => true

Gets a flag flag that indicates if the stream is readable (always true).

◆ CanSeek

override bool Crosstales.Common.Util.MemoryCacheStream.CanSeek => true

Gets a flag flag that indicates if the stream is seekable (always true).

◆ CanWrite

override bool Crosstales.Common.Util.MemoryCacheStream.CanWrite => true

Gets a flag flag that indicates if the stream is seekable (always true).

◆ Length

override long Crosstales.Common.Util.MemoryCacheStream.Length => _length

Gets the current stream length.

Property Documentation

◆ Position

override long Crosstales.Common.Util.MemoryCacheStream.Position
getset

Gets or sets the current stream position.


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/DJPro/DJPro/Assets/Plugins/crosstales/Common/Scripts/Util/MemoryCacheStream.cs