Пример #1
0
 public static Span128 <T> Alloc <T>(int minlen, T?fill = null)
     where T : struct
 {
     Span128.Alignment <T>(minlen, out int blocklen, out int fullBlocks, out int remainder);
     if (remainder == 0)
     {
         return(AllocBlocks <T>(fullBlocks, fill));
     }
     else
     {
         return(Span128.AllocBlocks <T>(fullBlocks + 1, fill));
     }
 }