Lucene.Net.Codecs.CodecUtil.ValidateFooter C# (CSharp) Метод

ValidateFooter() приватный статический Метод

private static ValidateFooter ( IndexInput @in ) : void
@in Lucene.Net.Store.IndexInput
Результат void
        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);
            }
        }