Пример #1
0
        public static async Task <IEnumerable <Stream> > CompileSetGroupLength(
            IEnumerable <Task <Stream> > streams,
            byte[] bytes)
        {
            var ret = await Task.WhenAll(streams).ConfigureAwait(false);

            UtilityTranslation.SetGroupLength(bytes, (uint)ret.Sum(i => i.Length));
            return(ret);
        }
Пример #2
0
 public static void CompileSetGroupLength(
     IEnumerable <Stream> streams,
     byte[] bytes)
 {
     UtilityTranslation.SetGroupLength(bytes, (uint)streams.NotNull().Sum(i => i.Length));
 }