public override void add(VariantContext vc) { if (doNotWriteGenotypes) { vc = (new VariantContextBuilder(vc)).noGenotypes().make(); } vc = vc.fullyDecode(header, false); base.add(vc); // allow on the fly indexing try { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final byte[] infoBlock = buildSitesData(vc); sbyte[] infoBlock = buildSitesData(vc); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final byte[] genotypesBlock = buildSamplesData(vc); sbyte[] genotypesBlock = buildSamplesData(vc); // write the two blocks to disk writeBlock(infoBlock, genotypesBlock); } catch (IOException e) { throw new Exception("Error writing record to BCF2 file: " + vc.ToString(), e); } }