Commit Graph

177 Commits (2c10bf7415234d7ae5c4cfb897697b2634260acb)

Author SHA1 Message Date
David Hall 3f5dbc6bb0 Resolved build errors from bulk cleanup 2023-09-24 15:47:18 -06:00
David Hall 2eb7120807 Cleaned code and fixed build issues 2023-09-24 15:26:46 -06:00
David Hall 6b3fc552a3 Fixed incorrect AllocZeros value in HGlobalMemoryMethods 2023-09-03 10:02:45 -06:00
David Hall e74b89840c More nullability work on Core - incl unit tests 2023-09-03 08:46:51 -06:00
David Hall 1aba884b1e Applied global usings and finished nullable work on Shell32 2023-08-04 10:24:49 -06:00
David Hall afd6b79b1f Check point - Lots of additions to windows messages 2023-05-28 09:07:56 -06:00
David Hall cdd2e6c124 Added IntPtr conversion for BOOL 2023-05-09 11:19:35 -06:00
David Hall 52ff2f5899 Partial work on nullable for Gdi32 2023-04-15 11:27:36 -06:00
David Hall b2a78e184b Checkpoint on nullable work after signature work on PInvoke.Security, enabling nullable for entire solution, and auto fixing all optional attributed string and array parameters. 2023-03-31 09:47:53 -06:00
David Hall b3bff3d6a5 Updates to Core, Shared and Kernel32 2023-03-05 15:41:10 -06:00
David Hall be96006413 Overhauled SizeT 2023-02-25 20:36:12 -07:00
David Hall 20011e1970 Added nullability constructs to Vanara.PInvoke.Shared 2023-02-20 07:58:52 -07:00
David Hall 54b1923a26 Added nullability to Vanara.Core 2023-02-18 19:31:48 -07: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 716b9e4036 Hopeful fix for #373 2023-01-28 20:19:00 -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 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
dahall d5cbaabf5f Removed implicit operators with SafeLPXSTR classes to prevent compiler confusion 2022-09-22 11:09:42 -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 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 b0d7174d5a Added SafeMemoryPool class to auto dispose temporary pointers. 2022-07-16 17:43:48 -06:00
dahall ca94a21b15 Added operator overloads to `SizeT` 2022-05-16 13:14:38 -06:00
dahall 3876cce9a0 Added indexer to SafeMemString 2022-03-10 17:43:56 -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 d29963d39a Added PinnedObject implicit operator to unsafe void*. 2022-02-05 15:14:55 -07:00
dahall 4ce428215c Added SafeAllocatedMemoryHandleBase.GetBytes() and pulled SafeMemoryHandle.Locked from IMemoryMethods instance 2022-01-22 15:30:42 -07:00
dahall 5a511172ea Added extra buffer when setting size from VanaraMarshaler to prevent errors when they're off due to alignment issues 2022-01-22 15:28:48 -07:00
dahall 5f52aa7820 Added SafeMoveableHGlobalHandle class and added support to locking memory to all memory classes. 2022-01-16 17:22:34 -07:00
dahall 26bd7d8e04 Added IEquatable support to GuidPtr and StrPtr* structs.
Added char* cast to StrPtrUni and sbyte* cast to StrPtrAnsi.
2021-09-27 15:47:33 -06:00
dahall 231ea34f17 Added IsNullOrEmpty property to StrPtrXX structures. 2021-09-21 16:11:45 -06:00
dahall b864f19066 Added CorrespondingTypeAttribute.EncodingType property to allow for encoding as part of a conversion. 2021-08-17 11:06:35 -06:00
dahall 4694988177 Enhanced ComConnectionPoint 2021-03-28 20:12:48 -06:00
dahall ce5e582d25 Updated ComStream to support IStream implementation 2021-03-28 16:34:49 -06:00
dahall 967389e246 Removed all calls to `Marshal.ReleaseComObject` where there exists a possibility that the interface could have been referenced by another object and changed to nulling the holding variable. See discussion thread #188. 2021-02-01 16:08:43 -07:00
dahall 2b4cfee7e2 Added SafeMemStruct.InitializeSizeField method to initialize an in-memory structure's size field 2021-01-25 12:10:13 -07:00