private static void ValidateFooter(IndexInput @in)
{
int magic = @in.ReadInt();
if (magic != FOOTER_MAGIC)
{
throw new Exception("codec footer mismatch: actual footer=" + magic + " vs expected footer=" + FOOTER_MAGIC + " (resource: " + @in + ")");
}
int algorithmID = @in.ReadInt();
if (algorithmID != 0)
{
throw new Exception("codec footer mismatch: unknown algorithmID: " + algorithmID);
}
}