public static Span <T> GetRowSpan <T>(this Buffer2D <T> buffer, int y) where T : struct { return(buffer.GetSpan().Slice(y * buffer.Width, buffer.Width)); }
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)); }