/// <summary> /// converts the DynamicBuffer<IntBufferElement> to an IntBufferElement rrary /// </summary> /// <returns></returns> public static IntBufferElement[] ToArray(DynamicBuffer <IntBufferElement> buffer) { IntBufferElement[] arr = new IntBufferElement[buffer.Length]; for (int i = 0; i < buffer.Length; i++) { arr[i] = buffer[i]; } return(arr); }
/// <summary> /// Compare this IntBufferElement against a given one /// </summary> /// <param name="other">The other IntBufferElement to compare to</param> /// <returns>Difference based on the IntBufferElement value</returns> public int CompareTo(IntBufferElement other) { return(Value - other.Value); }