Ejemplo n.º 1
0
        private void WriteRawDataToLocal(byte[] myBytes)
        {
            Time day = Setting.ReceivingTimeOfNtripData;//Time.UtcNow;//

            if (BinaryDataWriter == null || CurrentLocalFileTime.DayOfYear != day.DayOfYear)
            {
                CurrentLocalFileTime = day;
                var outfileName = RtcmFileNamer.BuildRtcm3FileName();
                var path        = Path.Combine(this.Option.LocalDirectory, outfileName);
                Geo.Utils.FileUtil.CheckOrCreateDirectory(Path.GetDirectoryName(path));
                BinaryDataWriter = new BinaryDataWriter(path);
            }

            BinaryDataWriter.Write(myBytes);
            BinaryDataWriter.Flush();
        }