dahall
37e78ae321
Fixed code causing warnings during Debug build
2020-09-19 08:47:48 -06:00
NN
80bfe2ce20
Call to closeMethod in GenericSafeHandle. ( #161 )
2020-08-27 10:25:14 -06:00
dahall
4216d271d9
Added new SafeMemStruct class that wraps a structure into memory with Span support. Added assoc. unit test.
2020-05-14 17:56:28 -06:00
David Hall
a94e60820b
Reworked memory manipulation functions in InteropExtensions and IntPtrConverter to use new marshaling directives and to drive consistency of use across libs (i.e. call same method to do same work).
2019-11-19 12:52:44 -07:00
David Hall
d2cb04ce79
Corrected problem with memory tests found by recent chanages
2019-08-27 17:30:55 -06:00
David Hall
c3521b7742
MAJOR BREAKING CHANGEs:
...
1) Obsoleted Vanara.Extensions.InteropExtensions.StructureToPtr for a name change to MarshalToPtr for consistency.
2) Added parameter to all methods reading memory that allows developer to indicate size of allocated memory they read from.
3) Enabled the ability to read/write enum values from memory in all extension methods.
4) Added Write methods for writing to memory
2019-08-17 21:13:57 -06:00
David Hall
96998e7c82
Added SafeAUTHZ_SOURCE_SCHEMA_REGISTRATION to support new AuthzEnumerateSecurityEventSources overload. Removed AUTHZ_SOURCE_SCHEMA_REGISTRATION_IN in lieu of better use of AUTHZ_SOURCE_SCHEMA_REGISTRATION.
2019-07-03 14:47:25 -06:00
David Hall
369f22fae7
Updated unit tests
2019-06-25 17:14:17 -06:00
David Hall
935fc50bf9
Updated tests for recent changes
2019-04-09 09:19:23 -06:00
David Hall
6f62808fc5
New and additional tests
2019-04-08 19:45:25 -06:00
David Hall
8560a43662
Completed work on unit test separation. All projects build.
2019-03-16 16:11:06 -06:00
David Hall
1a7a555de1
Separated out each unit test project so there is a 1:1 match between unit test project and assembly. Should simplify rebuilds on testing.
2019-03-16 10:28:15 -06:00
David Hall
c5467dfb7e
Another 2.0 major commit. All tests working.
2018-11-19 21:18:50 -07:00
David Hall
138accc380
MAJOR BREAKING CHANGES: Fundamentally changed how HANDLEs are represented and used. Much better type safety now that all handles derive from HANDLE and disposing instances are all noted by a SafeHxxx name. Solves problem with circular references and random IntPtr parameters.
2018-09-21 22:35:34 -06:00
David Hall
bbc22f6646
Changed calls from conversion operator to DangerousGetHandle for all GenericSafeHandle derivatives.
2018-09-04 13:42:49 -06:00
David Hall
02eaec5c12
Updated unit tests with changes to library
2017-12-22 09:08:36 -07:00
David Hall
da627dad2e
Initial load: Extra libraries and unit tests
2017-11-27 11:11:20 -07:00