public static void Default() { var rental = new ArrayRental <int>(Array.Empty <int>()); True(rental.IsEmpty); Equal(0, rental.Length); True(rental.Span.IsEmpty); True(rental.Memory.IsEmpty); True(rental.Segment.Count == 0); Empty(rental.Segment); rental.Dispose(); rental = default; True(rental.IsEmpty); Equal(0, rental.Length); True(rental.Span.IsEmpty); True(rental.Memory.IsEmpty); True(rental.Segment.Count == 0); rental.Dispose(); Empty(rental.Segment); }
public void Dispose() => buffer.Dispose();