public static byte[] ReadAllByteArray()
 {
     if (m_fileStream == null || GetAllStatus.GetIsWaveDataWrite() || !GetAllStatus.GetIsWaveDataRead())
     {
         return(null);
     }
     try
     {
         byte[] dataRead = new byte[m_fileStream.Length];
         m_fileStream.Read(dataRead, 0, dataRead.Length);
         return(dataRead);
     }
     catch (Exception)
     {
         return(null);
     }
 }
 public static bool WriteByteArray(byte[] data)
 {
     if (m_fileStream == null || GetAllStatus.GetIsWaveDataRead() || !GetAllStatus.GetIsWaveDataWrite())
     {
         return(false);
     }
     try
     {
         m_fileStream.Write(data, 0, data.Length);
         GetAllStatus.SetIsWaveDataWrite(true);;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
        public static int ReadByteArray(byte[] data)
        {
            int receieveNum = 0;

            if (m_fileStream == null || GetAllStatus.GetIsWaveDataWrite() || !GetAllStatus.GetIsWaveDataRead())
            {
                return(0);
            }
            try
            {
                receieveNum = m_fileStream.Read(data, 0, data.Length);
                return(receieveNum);
            }
            catch (Exception)
            {
                return(0);
            }
        }