Esempio n. 1
0
        private static IReadOnlyList <LNode> ReadBlt(Stream Input, string FileName)
        {
            var  reader = new LoycBinaryReader(Input);
            bool isBlt  = reader.CheckMagic();

            if (!isBlt)
            {
                Input.Seek(0, SeekOrigin.Begin);
                return(null);
            }
            else
            {
                return(reader.ReadFileContents(FileName));
            }
        }
Esempio n. 2
0
 private static IReadOnlyList<LNode> ReadBlt(Stream Input, string FileName)
 {
     var reader = new LoycBinaryReader(Input);
     bool isBlt = reader.CheckMagic();
     if (!isBlt)
     {
         Input.Seek(0, SeekOrigin.Begin);
         return null;
     }
     else
     {
         return reader.ReadFileContents(FileName);
     }
 }