Exemplo n.º 1
0
 public static Span <T> GetRowSpan <T>(this Buffer2D <T> buffer, int y)
     where T : struct
 {
     return(buffer.GetSpan().Slice(y * buffer.Width, buffer.Width));
 }
Exemplo n.º 2
0
 public static Span <T> GetRowSpan <T>(this Buffer2D <T> buffer, int y)
     where T : struct
 {
     Guard.NotNull(buffer, nameof(buffer));
     return(buffer.GetSpan().Slice(y * buffer.Width, buffer.Width));
 }