• APIブラウザ
  • 設計思想
Show / Hide Table of Contents
  • ExapisSOP
    • AppWorker
    • ContextEventArgs
    • HostRunner
    • IConfiguration
    • IContext
    • IPipeline
    • IProcess
    • IProcess<TParam, TResult>
    • IService
    • TerminationEventArgs
    • TerminationException
    • TerminationReason
    • UnhandledErrorEventArgs
    • VersionInfo
  • ExapisSOP.Binary
    • DataValue
  • ExapisSOP.Core
    • ConfigurationExtensions
    • ContextExtensions
    • CustomPipelineProcess<TParam, TResult>
    • ImmutablePipeline
    • Pipeline
    • PipelineExtensions
    • PipelineExtensions.ExceptionHandler
    • PipelineExtensions.ExceptionHandler<TParam, TResult>
    • PipelineExtensions.LoggingProcess
    • PipelineExtensions.NextProcessFunc
    • PipelineExtensions.ProcessFunc
    • PipelineExtensions.ProcessFunc<TParam, TResult>
    • PipelineExtensions.ProcessFuncWrapper
    • PipelineExtensions.ProcessFuncWrapper<TParam, TResult>
  • ExapisSOP.Globalization
    • EnglishErrorReportBuilder
    • JapaneseErrorReportBuilder
  • ExapisSOP.IO
    • CachedStream
    • DefaultPath
    • FileSystemServiceOptions
    • FileSystemServiceOptionsExtensions
    • IFileSystemService
    • InvalidPathFormatException
    • IPathList
    • Paths
    • PathString
    • PathStringFormatter
  • ExapisSOP.IO.Logging
    • ConsoleLogger
    • DefaultErrorDetailProvider
    • ErrorReportBuilder
    • ExceptionRecord
    • HResultDetailProvider
    • ICustomErrorDetailProvider
    • ILogFile
    • ILoggable
    • ILogger
    • ILoggingSystemService
    • LogData
    • LogFile
    • LogFileType
    • Logger
    • LoggerExtension
    • LoggingSystemServiceOptions
    • LoggingSystemServiceOptions.CreateLogFile
    • LogLevel
    • LongMessageRecord
    • MultipleLogger
    • OutputStreamLogger
  • ExapisSOP.IO.Settings
    • CustomSettings
    • DataStore
    • DefaultSettings
    • EnvironmentSettings
    • ISettingsSystemService
    • OptimizedSettings
    • SettingsSystemServiceOptions
    • SettingsSystemServiceOptions.ConfirmVersionInfo
    • SettingsSystemServiceOptions.GetVersionInfo
  • ExapisSOP.IO.Settings.CommandLine
    • CommandLineConverter
    • CommandLineParser
    • CommandLineServiceOptions
    • CommandLineServiceOptions.CreateConverterMappingTable
    • FileNameList
    • IArgumentConverter
    • IArgumentConverter<T>
    • ICommandLineService
    • ManualAttribute
    • Option
    • Option.Value
    • OptionAttribute
    • Switch
    • SwitchAttribute
  • ExapisSOP.NativeWrapper
    • INativeCaller
    • WinAPI
  • ExapisSOP.NativeWrapper.Windows
    • Kernel32
  • ExapisSOP.Numerics
    • CryptionRandom
    • IRandom
    • LinearCongruentialGenerator
    • RandomExtension
    • SerializableRandom
    • SystemRandom
    • Xorshift
    • Xorshift2
  • ExapisSOP.Text
    • SimpleEncoding
    • SimpleString
  • ExapisSOP.Utils
    • ArrayExtensions
    • ConsoleUtil
    • DisposableBase
    • IAwaitable<T>
    • IAwaiter<T>
    • IUtilityService
    • SecureStringExtensions
    • SerializationInfoExtensions
    • StringExtensions
    • StringUtil
    • UtilityConfigurationExtensions
    • UtilityContextExtensions

CachedStream クラス

キャッシュされたストリームを表します。

継承
System.Object
System.MarshalByRefObject
System.IO.Stream
CachedStream
実装
System.IAsyncDisposable
System.IDisposable
継承されたメンバー
System.IO.Stream.Null
System.IO.Stream.BeginRead(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
System.IO.Stream.BeginWrite(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
System.IO.Stream.Close()
System.IO.Stream.CopyTo(System.IO.Stream)
System.IO.Stream.CopyTo(System.IO.Stream, System.Int32)
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.CopyToAsync(System.IO.Stream, System.Threading.CancellationToken)
System.IO.Stream.CreateWaitHandle()
System.IO.Stream.Dispose()
System.IO.Stream.DisposeAsync()
System.IO.Stream.EndRead(System.IAsyncResult)
System.IO.Stream.EndWrite(System.IAsyncResult)
System.IO.Stream.FlushAsync()
System.IO.Stream.FlushAsync(System.Threading.CancellationToken)
System.IO.Stream.ObjectInvariant()
System.IO.Stream.Read(System.Span<System.Byte>)
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.ReadAsync(System.Memory<System.Byte>, System.Threading.CancellationToken)
System.IO.Stream.Synchronized(System.IO.Stream)
System.IO.Stream.Write(System.ReadOnlySpan<System.Byte>)
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.WriteAsync(System.ReadOnlyMemory<System.Byte>, System.Threading.CancellationToken)
System.IO.Stream.CanTimeout
System.IO.Stream.ReadTimeout
System.IO.Stream.WriteTimeout
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
名前空間: ExapisSOP.IO
アセンブリ: ExapisSOP.dll
構文
[Obsolete("現在、充分に動作確認がされていません。ご利用の際は注意してください。")]
public sealed class CachedStream : Stream, IAsyncDisposable, IStream, IReader, IWriter, IDataFlow, IDisposable

コンストラクタ 一覧

| 編集/提案 ソースを表示

CachedStream(String, IEnumerable<Byte>)

型'CachedStream'の新しいインスタンスを生成します。

宣言
public CachedStream(string cacheFile, IEnumerable<byte> data)
引数
型 名前 説明
System.String cacheFile

キャッシュファイルへのパスです。

System.Collections.Generic.IEnumerable<System.Byte> data

読み書きするデータです。コピーしてから利用されます。

プロパティ 一覧

| 編集/提案 ソースを表示

CanRead

このストリームは読み取りをサポートする為、常にtrueを返します。

宣言
public override bool CanRead { get; }
プロパティ値
型 説明
System.Boolean
上書き
System.IO.Stream.CanRead
| 編集/提案 ソースを表示

CanSeek

このストリームは位置の変更をサポートする為、常にtrueを返します。

宣言
public override bool CanSeek { get; }
プロパティ値
型 説明
System.Boolean
上書き
System.IO.Stream.CanSeek
| 編集/提案 ソースを表示

CanWrite

このストリームは書き込みをサポートする為、常にtrueを返します。

宣言
public override bool CanWrite { get; }
プロパティ値
型 説明
System.Boolean
上書き
System.IO.Stream.CanWrite
| 編集/提案 ソースを表示

Capacity

このストリームが確保したメモリ容量を取得します。

宣言
public int Capacity { get; }
プロパティ値
型 説明
System.Int32
| 編集/提案 ソースを表示

Count

このストリームが格納している要素の数を符号付き32ビット整数形式で取得します。

宣言
public int Count { get; }
プロパティ値
型 説明
System.Int32
| 編集/提案 ソースを表示

IsDisposed

このストリームが破棄されている場合はtrue、有効な場合はfalseを返します。

宣言
public bool IsDisposed { get; }
プロパティ値
型 説明
System.Boolean
| 編集/提案 ソースを表示

Length

このストリームが格納している要素の数を符号付き64ビット整数形式で取得します。

宣言
public override long Length { get; }
プロパティ値
型 説明
System.Int64
上書き
System.IO.Stream.Length
| 編集/提案 ソースを表示

Position

このストリームの現在位置を取得または設定します。

宣言
public override long Position { get; set; }
プロパティ値
型 説明
System.Int64
上書き
System.IO.Stream.Position

メソッド 一覧

| 編集/提案 ソースを表示

Dispose(Boolean)

現在のオブジェクトインスタンスを破棄します。

宣言
protected override void Dispose(bool disposing)
引数
型 名前 説明
System.Boolean disposing

マネージドオブジェクトとアンマネージオブジェクト両方を破棄する場合はtrue、 アンマネージオブジェクトのみを破棄する場合はfalseを設定します。

上書き
System.IO.Stream.Dispose(System.Boolean)
| 編集/提案 ソースを表示

Flush()

現在のストリームの内容をキャッシュファイルへ書き込みます。

宣言
public override void Flush()
上書き
System.IO.Stream.Flush()
例外
型 条件
System.ObjectDisposedException
System.IO.IOException
| 編集/提案 ソースを表示

Peek()

現在のストリームから1バイトだけ読み取ります。 ただし、ストリーム位置は進めません。

宣言
public int Peek()
戻り値
型 説明
System.Int32

読み取ったデータ、または、 ストリームの現在位置が末尾を超えている場合は-1を返します。

例外
型 条件
System.ObjectDisposedException
| 編集/提案 ソースを表示

PeekAsync()

現在のストリームから1バイトだけ読み取ります。 ただし、ストリーム位置は進めません。

宣言
public Task<int> PeekAsync()
戻り値
型 説明
System.Threading.Tasks.Task<System.Int32>

読み取ったデータ、または、 ストリームの現在位置が末尾を超えている場合は-1を戻り値として含む非同期操作です。

例外
型 条件
System.ObjectDisposedException
| 編集/提案 ソースを表示

Read(Byte[], Int32, Int32)

現在のストリームからバイト配列を読み取ります。

宣言
public override int Read(byte[] buffer, int offset, int count)
引数
型 名前 説明
System.Byte[] buffer

読み取ったデータを格納するバイト配列です。

System.Int32 offset

バイト配列の格納先の先頭位置です。

System.Int32 count

読み取るデータの個数です。

戻り値
型 説明
System.Int32

読み取る事ができたデータの個数です。

上書き
System.IO.Stream.Read(System.Byte[], System.Int32, System.Int32)
例外
型 条件
System.ObjectDisposedException
System.ArgumentNullException
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

ReadByte()

現在のストリームから1バイトだけ読み取ります。

宣言
public override int ReadByte()
戻り値
型 説明
System.Int32

読み取ったデータ、または、 ストリームの現在位置が末尾を超えている場合は-1を返します。

上書き
System.IO.Stream.ReadByte()
例外
型 条件
System.ObjectDisposedException
| 編集/提案 ソースを表示

Refresh()

キャッシュファイルからデータを現在のストリームへ再度読み込みます。

宣言
public void Refresh()
例外
型 条件
System.ObjectDisposedException
System.IO.IOException
| 編集/提案 ソースを表示

RefreshAsync()

非同期的にキャッシュファイルからデータを現在のストリームへ再度読み込みます。

宣言
public Task RefreshAsync()
戻り値
型 説明
System.Threading.Tasks.Task

非同期操作です。

| 編集/提案 ソースを表示

RefreshAsync(CancellationToken)

非同期的にキャッシュファイルからデータを現在のストリームへ再度読み込みます。

宣言
public Task RefreshAsync(CancellationToken cancellationToken)
引数
型 名前 説明
System.Threading.CancellationToken cancellationToken

操作の終了を通知するオブジェクトです。

戻り値
型 説明
System.Threading.Tasks.Task

非同期操作です。

| 編集/提案 ソースを表示

Seek(Int64, SeekOrigin)

ストリームの位置を変更します。

宣言
public override long Seek(long offset, SeekOrigin origin)
引数
型 名前 説明
System.Int64 offset

ストリームの新しい位置の相対値です。

System.IO.SeekOrigin origin

相対値を絶対値へ変換する為の方法です。

戻り値
型 説明
System.Int64

新しいストリームの位置の絶対値です。

上書き
System.IO.Stream.Seek(System.Int64, System.IO.SeekOrigin)
例外
型 条件
System.ObjectDisposedException
System.ArgumentException
| 編集/提案 ソースを表示

SetLength(Int32)

ストリームの大きさを変更します。

宣言
public void SetLength(int value)
引数
型 名前 説明
System.Int32 value

新しいストリーム長です。

例外
型 条件
System.ObjectDisposedException
System.OutOfMemoryException
| 編集/提案 ソースを表示

SetLength(Int64)

ストリームの大きさを変更します。

宣言
public override void SetLength(long value)
引数
型 名前 説明
System.Int64 value

新しいストリーム長です。

上書き
System.IO.Stream.SetLength(System.Int64)
例外
型 条件
System.ObjectDisposedException
System.OutOfMemoryException
System.OverflowException
| 編集/提案 ソースを表示

Write(Byte[], Int32, Int32)

現在のストリームへバイト配列を書き込みます。

宣言
public override void Write(byte[] buffer, int offset, int count)
引数
型 名前 説明
System.Byte[] buffer

読み取ったデータを格納するバイト配列です。

System.Int32 offset

バイト配列の格納先の先頭位置です。

System.Int32 count

読み取るデータの個数です。

上書き
System.IO.Stream.Write(System.Byte[], System.Int32, System.Int32)
例外
型 条件
System.ObjectDisposedException
System.ArgumentNullException
System.ArgumentOutOfRangeException
System.OutOfMemoryException
System.OverflowException
| 編集/提案 ソースを表示

WriteByte(Byte)

現在のストリームへ1バイトだけ書き込みます。

宣言
public override void WriteByte(byte value)
引数
型 名前 説明
System.Byte value
上書き
System.IO.Stream.WriteByte(System.Byte)
例外
型 条件
System.ObjectDisposedException
System.OutOfMemoryException
System.OverflowException

実装

System.IAsyncDisposable
System.IDisposable
  • 編集/提案
  • ソースを表示
Back to top Generated by DocFX