File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
UnmanagedMemoryUtils/UnmanagedMemoryUtils Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,7 @@ Allows to manipulate array of unmanaged pointers with the `UnmanagedArrayPointer
2222* Added the ` UnmanagedPointerArray<T> ` struct used to manipulate array of pointers.
2323* Marked all properties as ` readonly ` as they don't modify the state of the structs.
2424* Use the new ` namespace ` syntax for less indentation levels.
25+
26+ ### Version 1.0.5
27+
28+ * Fixed an issue that made it impossible to retrieve the string value of an ` UnmanagedString ` with the ` ToString ` method.
Original file line number Diff line number Diff line change 77 <AllowUnsafeBlocks >True</AllowUnsafeBlocks >
88 <GeneratePackageOnBuild >True</GeneratePackageOnBuild >
99 <Title >UnmanagedMemoryUtils</Title >
10- <VersionPrefix >1.0.4 </VersionPrefix >
10+ <VersionPrefix >1.0.5 </VersionPrefix >
1111 <PackageReadmeFile >README.md</PackageReadmeFile >
1212 <Description >A .NET collection of utilities for working with unmanaged memory.
1313Provides faster alternatives to Memory< T> and ReadOnlyMemory< T> in addition to accessing unmanaged string from managed code.
@@ -30,7 +30,11 @@ Version 1.0.4
3030
3131* Added the UnmanagedPointerArray< T> struct used to manipulate array of pointers.
3232* Marked all properties as 'readonly' as they don't modify the state of the structs.
33- * Use the new 'namespace' syntax for less indentation levels.</PackageReleaseNotes >
33+ * Use the new 'namespace' syntax for less indentation levels.
34+
35+ Version 1.0.5
36+
37+ * Fixed an issue that made it impossible to retrieve the string value of an UnmanagedString with the 'ToString' method.</PackageReleaseNotes >
3438 </PropertyGroup >
3539 <ItemGroup >
3640 <None Include =" ..\..\README.md" Pack =" true" PackagePath =" \" />
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public void Free()
121121
122122 public override readonly string ToString ( )
123123 {
124- if ( Pointer ! = nint . Zero ) return string . Empty ;
124+ if ( Pointer = = nint . Zero ) return string . Empty ;
125125 return m_Marshaller . Invoke ( Pointer ) ?? string . Empty ;
126126 }
127127
You can’t perform that action at this time.
0 commit comments