Skip to content

Commit 8427f25

Browse files
committed
update unity package
1 parent a72eeea commit 8427f25

4 files changed

Lines changed: 5 additions & 11 deletions

File tree

512 Bytes
Binary file not shown.

LinqGen.Unity/Packages/com.cathei.linqgen/Runtime/Core/Collections/Managed/PooledListManaged.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,10 @@ public int Count
6060
get => _count;
6161
}
6262

63-
public T[] Array => _array;
64-
65-
public T this[int index]
63+
public ref T this[int index]
6664
{
6765
[MethodImpl(MethodImplOptions.AggressiveInlining)]
68-
get => _array[index];
69-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
70-
set => _array[index] = value;
66+
get => ref _array[index];
7167
}
7268

7369
[MethodImpl(MethodImplOptions.AggressiveInlining)]

LinqGen.Unity/Packages/com.cathei.linqgen/Runtime/Core/Collections/Native/PooledListNative.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ public int Count
5757

5858
public DynamicArrayNative<T> Array => _array;
5959

60-
public T this[int index]
60+
public ref T this[int index]
6161
{
6262
[MethodImpl(MethodImplOptions.AggressiveInlining)]
63-
get => _array[index];
64-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
65-
set => _array[index] = value;
63+
get => ref _array[index];
6664
}
6765

6866
[MethodImpl(MethodImplOptions.AggressiveInlining)]

LinqGen.Unity/Packages/com.cathei.linqgen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": {
55
"name": "Maxwell Keonwoo Kang"
66
},
7-
"version": "0.0.3-preview",
7+
"version": "0.0.4-preview",
88
"unity": "2020.1",
99
"description": "Fast Linq-to-object source generator",
1010
"license": "MIT",

0 commit comments

Comments
 (0)