Esempio n. 1
0
        public void ParseTDATBlock(Stream stream)
        {
            // Each TDAT block placed right after each TKEY block
            long TDATOffset = BlockOffset + Size + HEADER_SIZE + BLOCK_SIZE_SIZE;

            // Main TKEY block is smaller, so we'll take different size
            TDATOffset += IsMain ? 0 : NAME_SIZE;

            stream.Seek(TDATOffset, SeekOrigin.Begin);

            DataBlock = new TDATBlock(stream, Version);
        }
Esempio n. 2
0
 public void FindAssociatedValue(Stream stream, TDATBlock block)
 {
     AssociatedEntry = block.GetEntryByOffset(stream, Offset);
 }