Commit Graph

415 Commits (7de0f5301480fc4126c5bebe0a2dd25d2c2f0886)

Author SHA1 Message Date
David Hall a041fc9a67 Fixed incorrect AllocZeros value in HGlobalMemoryMethods 2023-09-07 14:58:46 -06:00
David Hall c34a7113d9 Added IComparable and IEquatable to SafeAllocatedMemoryHandle 2023-02-04 10:01:40 -07:00
David Hall 6fd718bbb7 Cleaned 2023-02-04 09:36:10 -07:00
David Hall ee9d5b4410 Updated project files 2023-01-31 15:32:15 -08:00
David Hall 716b9e4036 Hopeful fix for #373 2023-01-28 20:19:00 -07:00
David Hall f257e79724 Updated project files 2023-01-27 19:54:38 -07:00
David Hall bebc771ac6 Added interface indicating that a specific indexer is supported. 2023-01-16 12:06:28 -07:00
David Hall 06c7284269 Changed ISimpleMemoryMethods.Allocs to public 2023-01-04 17:17:26 -07:00
David Hall 13365d967f Added locking to SafeMemoryHandle.ToType extension method 2023-01-04 17:11:01 -07:00
David Hall 3596f9999b Changed ASCII encoder to UTF8 encoder in string helper classes for broader character support. 2023-01-02 14:38:38 -07:00
David Hall 8e9280e5aa Updated XML docs 2023-01-02 10:41:24 -07:00
David Hall 25392d6ab8 Added Type.GetConstants extension method 2023-01-02 10:33:03 -07:00
David Hall d480e3040e Fixed bug in InteropExtensions.Write(IEnumerable<string>...) method that wiped out existing values if an offset was provided. 2023-01-02 10:32:35 -07:00
David Hall dbaa250ded Added support for memory classes and interfaces to indicate if they zero memory on initialization to prevent re-zeroing. 2023-01-02 10:31:15 -07:00
Scover 637b59da60
Updated ``SafeLPSTR``, ``SafeLPTSTR`` and ``SafeLPWSTR`` (#352)
* Fixed unbounded recursion

Fixed unbounded recursion in ``SafeLPSTR``, ``SafeLPTSTR`` and ``SafeLPWSTR`` implicit cast operators from string by inverting the types.
As the associated documentation states the operators are supposed to convert to a string, not from a string.

* Removed useless operators + nullable
2022-12-19 16:42:43 -07:00
David Hall 6fb1d69828 Fixed exceptions being thrown by `BOOL` and `BOOLEAN` when interacting with `int` and ! operator 2022-11-18 07:54:12 -07:00
David Hall 630261a8c4 Fixed bug in IEnumString.Enum extension method 2022-11-16 11:53:02 -07:00
dahall d5cbaabf5f Removed implicit operators with SafeLPXSTR classes to prevent compiler confusion 2022-09-22 11:09:42 -06:00
David Hall 0e84510a8b Updated NuGet packages 2022-09-01 17:48:45 -06:00
dahall 7c032ba708 Renamed all project report files to 'readme.md' so they show in GitHub 2022-09-01 14:43:04 -06:00
dahall d7a7a340f5 Added implicit operators to new types for GuidPtr, and StrPtrXX variants 2022-08-29 16:21:43 -06:00
dahall b1247750f6 Simplified NativeMemoryStream.Write() 2022-08-29 16:21:01 -06:00
dahall 93bdb99f43 Added SafeMemoryHandleEx.AddSubReference 2022-08-29 16:20:24 -06:00
dahall 9dc2de859d Added nullable type handling to IntPtr.Convert 2022-08-29 16:19:37 -06:00
dahall 3b18dd7755 Updated project files 2022-08-06 15:38:43 -06:00
dahall 155609864a Fixed minor build errors 2022-08-05 21:03:44 -06:00
dahall 34bed8cfb4 Cleaned handle classes 2022-07-28 22:19:53 -06:00
dahall 480f5df595 Added string classes via template 2022-07-20 17:40:09 -06:00
dahall eeb429ebb6 Added ! operator support to SafeAllocatedMemoryHandle and SafeMemoryHandle.Clone() method 2022-07-20 17:36:27 -06:00
dahall 2ce6552190 Enhanced SafeMemString with nullable support and the addition of methods, properties and operators to mimic StringBuilder 2022-07-20 17:35:05 -06:00
dahall 0320c6b7b6 Enabled nullable support for string related classes 2022-07-20 17:33:26 -06:00
dahall e97896fda6 Updated project files 2022-07-16 19:30:05 -06:00
dahall b0d7174d5a Added SafeMemoryPool class to auto dispose temporary pointers. 2022-07-16 17:43:48 -06:00
dahall fb9787ec0a Fixed bug in StringHelper.GetByteCount 2022-07-05 09:43:24 -06:00
dahall 500fc4ecc7 Added RequiresUnreferencedCodeAttribute for frameworks other than NET50 and greater. 2022-06-28 16:02:10 -06:00
dahall 298ea34914 Updated package readme files 2022-06-14 16:55:29 -06:00
dahall ca94a21b15 Added operator overloads to `SizeT` 2022-05-16 13:14:38 -06:00
dahall aa69db53fd Updated documentation and added package readme files. 2022-05-09 15:56:58 -06:00
dahall a1d049242d Exposed VirtualDictionary.Add as virtual method 2022-04-10 22:34:59 -06:00
dahall dc6cea6de0 Moved most TargetFrameworks tags out of project files and into Directory.Build.props for easier maint. Also changed net462 build to net45 for greater compatibility. 2022-03-14 09:32:06 -06:00
dahall 7b9c17050b Pulled back dependency on System.Memory to 4.5.3 for compatibility 2022-03-11 18:04:38 -07:00
dahall 3876cce9a0 Added indexer to SafeMemString 2022-03-10 17:43:56 -07:00
NN 95328a6fd0
Lower System.ValueTuple version dependency. (#280) 2022-02-28 11:54:43 -07:00
dahall 9e69ce32ca Made CorrespondingTypeAttribute.GetAttrForEnum public. 2022-02-22 19:38:50 -07:00
dahall a9ae8df90a Extended SafeAllocatedMemoryHandle.ToType extension method to support CharSet 2022-02-15 16:01:21 -07:00
dahall dd2e46ae75 Fixed minor error handling in EnumFlagIndexer and added Intersect method. 2022-02-08 14:53:03 -07:00
dahall 565ec6add7 Fixed #274 (error in EnumerableEqualityComparer.Equals) 2022-02-08 09:18:03 -07:00
dahall b669932c57 Removed code and conditionals for obsolete target frameworks. 2022-02-07 14:58:09 -07:00
dahall d9f00186b0 Removed support for .NET 2.0, 3.5, 4.0 and 4.5, .NET Core 2.0, 2.1, and 3.0 since all are or shortly will be out of support. Added support for .NET 4.6.2 and 4.8. 2022-02-07 14:35:37 -07:00
dahall d29963d39a Added PinnedObject implicit operator to unsafe void*. 2022-02-05 15:14:55 -07:00