Exemplo n.º 1
0
        OcadSymbol[] ReadSymbols(OcadSymbolBlocks b)
        {
            List<OcadSymbol> list = new List<OcadSymbol>();

            for (int i = 0; i < b.filepositions.Length; ++i) {
                if (b.filepositions[i] != 0) {
                    OcadSymbol sym;
                    reader.BaseStream.Seek(b.filepositions[i], SeekOrigin.Begin);
                    sym = OcadSymbol.Read(reader, version);
                    list.Add(sym);
                }
            }

            return list.ToArray();
        }
Exemplo n.º 2
0
 OcadSymbolBlocks ReadSymbolBlocks(int firstBlock)
 {
     OcadSymbolBlocks sb = new OcadSymbolBlocks();
     sb.Read(reader, firstBlock);
     return sb;
 }