예제 #1
0
        private bool CheckFormat(LABNFile file)
        {
            FourCC fourCC = file.ReadFourCC();

            if (fourCC == "LABN")
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
        protected override SRFile CreateFromStream(string path, Stream stream)
        {
            var file = new LABNFile(path, stream);

            if (!CheckFormat(file))
            {
                file.Close();
                file = null;
            }
            return(file);
        }