File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ void Alloc(string str, CoStrType charSet)
20
20
public byte * Ptr ;
21
21
public char * CharPtr => ( char * ) Ptr ;
22
22
23
- public static explicit operator void * ( CoMem co ) => co . Ptr ;
24
- public static explicit operator byte * ( CoMem co ) => co . Ptr ;
25
- public static explicit operator nint ( CoMem co ) => ( nint ) co . Ptr ;
23
+ public static implicit operator void * ( CoMem co ) => co . Ptr ;
24
+ public static implicit operator byte * ( CoMem co ) => co . Ptr ;
25
+ public static implicit operator nint ( CoMem co ) => ( nint ) co . Ptr ;
26
26
27
27
#region Dispose
28
28
public void MarkAsDisposed ( ) => isDisposed = true ;
@@ -50,9 +50,9 @@ internal sealed unsafe class CoMem<T> : IDisposable where T : unmanaged
50
50
51
51
public T * Ptr ;
52
52
53
- public static explicit operator void * ( CoMem < T > co ) => co . Ptr ;
54
- public static explicit operator T * ( CoMem < T > co ) => co . Ptr ;
55
- public static explicit operator nint ( CoMem < T > co ) => ( nint ) co . Ptr ;
53
+ public static implicit operator void * ( CoMem < T > co ) => co . Ptr ;
54
+ public static implicit operator T * ( CoMem < T > co ) => co . Ptr ;
55
+ public static implicit operator nint ( CoMem < T > co ) => ( nint ) co . Ptr ;
56
56
57
57
#region Dispose
58
58
bool isDisposed ;
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net7 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
<ImplicitUsings >enable</ImplicitUsings >
6
6
<Nullable >enable</Nullable >
7
7
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
8
8
<PackageId >Yotic.Memory.Extensions</PackageId >
9
9
<Title >Memory.Extensions</Title >
10
- <Version >1.0.8 </Version >
10
+ <Version >1.1.0 </Version >
11
11
<Authors >Yotic</Authors >
12
12
<Company ></Company >
13
13
<Description >Memory utils for convenient work with memory, arrays and pointers</Description >
You can’t perform that action at this time.
0 commit comments