コード例 #1
0
ファイル: Stream26.cs プロジェクト: no1mann/Open-GHTCP
 public byte[] ReadEverything()
 {
     if (this._stream is Stream27)
     {
         return(((Stream27)this._stream).ToArray());
     }
     if (!this.CanRead)
     {
         throw new Exception("Can't read from hexstream!");
     }
     return(KeyGenerator.ReadBytes(this._stream));
 }