コード例 #1
0
ファイル: RtpDump.cs プロジェクト: songoku141/net7mma_core
        /// <summary>
        /// Reads the Binary File Identifier '#!rtpplay..' and the RD_hdr_t.
        /// </summary>
        void ReadFileHeader()
        {
            //If identifier has not been read and the format is unknown or non text
            if (m_FileIdentifier == null && RtpDumpExtensions.HasFileHeader(m_Format))
            {
                //Identify the Binary file
                ReadBinaryFileIdentifier();

                //If the format is non text
                if (m_Format < FileFormat.Text)
                {
                    //Read the RD_hdr_t
                    ReadBinaryFileHeader();
                }
            }
        }