namespace InnovEnergy.App.Collector.Utils; public static class Utils { public static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); public static IEnumerable> ParseLengthValueEncoded(this Byte[] source) { var index = 0; while (index < source.Length) { var length = source[index++]; yield return new ArraySegment(source, index, length); index += length; } } }