This question is a duplicate of 1042830, but MonoTouch-specific. Is there a way th开发者_如何学Cat\'s safer than allocating an IntPtr, drawing into it using CGBitmapContext and then reading bytes at t
I need to declare square matrices in C# WinForms with more than 20000 items in a row. I read about 2GB .Net object size limit in 32bit and also the same case in 64bit OS.
In C#, I need to write T[] to a stream, ideally without any additional buffers. I have a dynamic code that converts T[] (where T is a no-objects struct) to a void* and fixes it in memory, and that wor
I\'m using a dll that contains unmanaged code for interacting with specific hardware, and I\'m trying to use it from C#, but I keep getting an AccessViolationException.
What are the consequences (positive/negative) of using the unsafe keyword in C# to use pointers? For example, what becomes of garbage collection, what are the performance gains/losses, what are the pe
I have identified this call as a bottleneck in a high pressure function. graphics.DrawImage(smallBitmap, x , y);
I\'m working on a project that uses a bunch of WIN32 API ca开发者_StackOverflow社区lls and requires some unsafe code. From a best practices standpoint should I isolate this code in its own DLL compile
In looking at this question which Jon did a fine job in answering... \'How to read a text file reversly with iter开发者_JAVA技巧ator\'. And there was a similar question in which I answered using point
Is len correctly initialized and safe in set_array call? void object_copy (Object* self, Object* obj) {
I have a .NET queue object. The producer thread do the Enqueue operation, the data enqueued in the queue is a byte[] array, while the other consumer thread do the Dequeue operation on the same queue o