unsafe
Is there a speed benefit to using unsafe code in .Net to swap objects of complex types?
Here is my current swap code for swapping 2 KeyValuePair objects in an array: KeyValuePair<int, T> t = a[i];[详细]
2023-01-20 03:33 分类:问答Calling unsafe code from managed (C#). Reading byte array
I have this method that I need to call and use in my application, but I don\'t know really know how to do it exactly.[详细]
2023-01-19 22:59 分类:问答Re-interpreting a byte array as an array of structs
I\'ve got a byte array that I want to re-interpret as an array of blittable structs, ideally without copying. Using unsafe code is fine. I know the number of bytes, and the number of structs that I wa[详细]
2023-01-16 01:04 分类:问答Perl Threads and Unsafe Signals
So I recently wanted to thread one of my Perl programs to increase its speed.Taking in a list of websites, I wanted to start a thread for each url and get the content of each website and then look for[详细]
2023-01-13 14:04 分类:问答unsafe c# code causes heap corruption on 64 bit platform unless built for x86 platform
I have a simple util that uses some unsafe code to get the file version information.when I compiled this as mixed platform (vs2008/.net 3.5)and deploy to 64 bit machine I get a heap corruption error.I[详细]
2023-01-10 22:43 分类:问答Unsafe C# - Instantiate Pointer at lowest memory address and overwrite
Is it possible to instantiate a pointer using (unsafe) C# at any given memory address (which one would be the lowest?) and simply start overwriting the memory with continuous random data 开发者_开发问[详细]
2023-01-08 19:06 分类:问答Calling a C++ function from C# - unbalanced stack
I have a unmanaged C++ function with the following signature: int function(char* param, int ret) I am trying to call it from C#:[详细]
2023-01-08 03:55 分类:问答Are there limitations when using unsafe code in .NET?
I see the allow unsafe code option in .NET. Only one of my apps have it set so i can copy an image to a bitmap quickly.[详细]
2023-01-07 10:48 分类:问答How to set an int to byte* C#
How can I convert an int to a byte* at a certain index in a byte*? Ideally I would like to have something like:[详细]
2023-01-06 13:48 分类:问答Conversion from void* to object in C#
In a C# project, I need to pass object parameters by putting references in a structure. i.e. I have a structure passed to a dispatcher[详细]
2023-01-05 15:02 分类:问答