Ocronet.Dynamic.OcroFST.FstIO.read_magic_string C# (CSharp) Method

read_magic_string() protected static method

protected static read_magic_string ( BinaryReader reader, string s ) : bool
reader System.IO.BinaryReader
s string
return bool
        protected static bool read_magic_string(BinaryReader reader, string s)
        {
            int n = read_int32_LE(reader);
            if (s.Length != n)
                return false;
            byte[] buf = reader.ReadBytes(n);
            string str = Encoding.ASCII.GetString(buf);
            if (str != s)
                return false;
            return true;
        }