public void Read(BundleReader reader) { if (HasBlocksInfo(reader.Signature)) { BlocksInfo.Read(reader); if (reader.Flags.IsBlocksAndDirectoryInfoCombined()) { DirectoryInfo.Read(reader); } } else { DirectoryInfo.Read(reader); reader.AlignStream(); } }
protected DownloadContextBase() { this.creaeteTimestamp = Util.getNowMilliseconds(); this.mBlockInfo = new BlocksInfo(); this.BLOCK_MIN_SIZE = 0x7d000;//0xf000 ==60KB 153600 ==150KB }