Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }