SigFileUtil.cs 700 B

123456789101112131415161718192021
  1. using Ips.Library.Basic;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Ips.Library.LocLib
  8. {
  9. public static class SigFileUtil
  10. {
  11. public static void GetTimeslots(int fileLen1, int fileLen2, int fs, int addZero, double timeOffset, int dataLen, int expFs, int[] starts, int[] lens)
  12. {
  13. if (starts.IsNullOrEmpty() || lens.IsNullOrEmpty())
  14. throw new ArgumentNullException(starts.IsNullOrEmpty() ? nameof(starts) : nameof(lens));
  15. if (starts.Length != lens.Length)
  16. throw new Exception("起点个数和时隙长度不一致!");
  17. }
  18. }
  19. }