Commit Graph

10 Commits (7c032ba708e713ba65ec96e544d9226bc487e97d)

Author SHA1 Message Date
dahall b669932c57 Removed code and conditionals for obsolete target frameworks. 2022-02-07 14:58:09 -07:00
dahall e886259eef Updated `SafeAnysizeStruct` so an `IntPtr` field can be used for the array size. 2021-09-01 11:05:57 -06:00
dahall 87664c5f97 Added AnySizeStringMarshaler<T> which is an IVanaraMarshaler implementation to handle structures where the last field is a single character string array. Also added ability to use "*" as field name to indicate that string or array length should be determined by the amount of allocated memory. 2021-02-18 14:22:59 -07:00
dahall 3cf49c0749 Introduced base class for SafeAnysizeStruct to enable reuse with objects that don't use a single field to determine the length of the array. 2020-04-07 09:34:13 -06:00
dahall 2e9935667a Removed generic constraint so classes could be processed and changed ctor param from int to SizeT for consistency with base class. 2020-03-31 16:01:47 -06:00
dahall cc7170875f Fix and test for #101 - Bug when using SafeAnysizeStruct. 2020-01-17 07:54:15 -07:00
David Hall 8ca39f3530 On IntPtr constructor, removed copying of memory from orig pointer and now just use unowned pointer. 2019-11-27 14:45:38 -07: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 9d02afc6e1 Added SafeAnysizeStructMarshaler which is a IVanaraMarshaler implementation for SafeAnysizeStruct<T> 2019-11-16 15:50:23 -07:00
David Hall 296a559eda Added SafeAnysizeStruct to help marshal stuctures with a 1-element field at the end that can be variable size. Adjusted all structs of this type to use this to marshal along with tests and supported classes.
BREAKING CHANGE: This forced the removal of PTOKEN_PRIVILEGES as that functionality is now in a shared marshaling class.
2019-11-03 16:02:54 -07:00