private void ParseTOC()
{
// Parse TOC Entries
for (int i = 0, tocFiles = (int)_header.NumFiles; i < tocFiles; i++)
{
_toc.Add(new Entry { Id = i, MD5 = _reader.ReadBytes(16), zIndexBegin = _reader.ReadUInt32(), Length = _reader.ReadUInt40(), Offset = _reader.ReadUInt40() }); /* FIXME: general idea was to implement parallel inflate route, still need to re-think this.
if (i == 0) continue;
if (i == tocFiles - 1)
_toc[i].zDatalen = (ulong)_reader.BaseStream.Length - _toc[i].Offset; //HACK: fails if psarc is truncated.
_toc[i-1].zDatalen = _toc[i].Offset - _toc[i-1].Offset; */
}
}