internal void BuildMetaData() { SetIndexSizes(); for (int i = 1; i < numStreams; i++) { if (streams[i].Size() <= 1) { //Console.WriteLine("Stream " + new String(streams[i].name) + " has size 0"); for (int j = i + 1; j < numStreams; j++) { streams[i] = streams[j]; } i--; numStreams--; } else { streams[i].EndStream(); } } //Console.WriteLine("numStreams = " + numStreams); CalcTildeStreamSize(); SetStreamOffsets(); byteCodePadding = NumToAlign(codeSize, 4); if (entryPoint != null) { output.SetEntryPoint(entryPoint.Token()); } }