internal LemonArraySegmentEnumerator(LemonArraySegment <T> arraySegment) { _array = arraySegment.Array; _start = arraySegment.Offset; _end = _start + arraySegment.Count; _current = _start - 1; }
/// <summary>Determines whether the specified <see cref="T:MelonLoader.LemonArraySegment`1" /> structure is equal to the current instance.</summary> /// <param name="obj">The structure to compare with the current instance.</param> /// <returns> /// <see langword="true" /> if the specified <see cref="T:MelonLoader.LemonArraySegment`1" /> structure is equal to the current instance; otherwise, <see langword="false" />.</returns> public bool Equals(LemonArraySegment <T> obj) => obj.Array == Array && obj.Offset == Offset && obj.Count == Count;