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); } }
/// <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); } }