Beispiel #1
0
 internal byte[] ReadStream(Stream stream, List <uint> sectors, int length)
 {
     using (var cfb = new CompoundStream(this, stream, sectors, length, true))
     {
         var bytes = new byte[length];
         cfb.Read(bytes, 0, length);
         return(bytes);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Reads bytes from a regular or mini stream.
 /// </summary>
 internal byte[] ReadStream(Stream stream, uint baseSector, int length, bool isMini)
 {
     using (var cfb = new CompoundStream(this, stream, baseSector, length, isMini, true))
     {
         var bytes = new byte[length];
         cfb.Read(bytes, 0, length);
         return(bytes);
     }
 }