/// <summary> /// Initializes a new instance of the <see cref="MappedBlockBinaryReader"/> class. /// </summary> /// <param name="blocks">Array of block indexes in the parent stream.</param> /// <param name="blockSize">Single block size in bytes.</param> /// <param name="length">Length of this stream in bytes.</param> /// <param name="baseReader">Base stream binary reader.</param> public MappedBlockBinaryReader(uint[] blocks, uint blockSize, long length, IBinaryReader baseReader) { Blocks = blocks; BlockSize = blockSize; BaseReader = baseReader.Duplicate(); Length = length; Position = 0; }