void-pointers
Iterating through collection of different types in C++
Situation I have a template class TIppImage<T> for image of type T. I have singleton class CIppMemoryManager which can store a number of images of different size and type.[详细]
2023-03-23 09:42 分类:问答How to Marshal a void* function return type and parameter in C#?
I have a C function with prototype, void* VoidPointer(void*); Now I need to marshal it in C#(using DllImport). But I do not know how to mention the parameters in C# code.[详细]
2023-03-21 02:18 分类:问答Converting double to void* in C
I\'m writing an interpreter and I\'d like to be able to store whatever value a function returns into a void pointer. I\'ve had no problem storing ints and various pointers as void pointers but I get a[详细]
2023-03-17 09:56 分类:问答C type punning question
How do I make the below function generic for uint8_t, uint16_t, uint32_t, int8_t, int16_t, int32_t and float_t?[详细]
2023-03-13 13:58 分类:问答Adding arbitrary types to an object at runtime
In our application we have an object that receives attributes at runtime.For example, to add a float to the object:[详细]
2023-03-13 04:06 分类:问答casting a block to a void* for dynamic class method resolution
+(BOOL)resolveClassMethod:(SEL)aSel { NSString *lString = NSStringFromSelector(aSel); if ([self validateLetterAndAccidental:lString]) {[详细]
2023-03-12 23:26 分类:问答Handle object in c++
I开发者_Go百科\'ve been told that a handle is a sort of \"void\" pointer. But what exactly does \"void pointer\" mean and what is its purpose. Also, what does \"somehandle = GetStdHandle(STD_INPUT_HAN[详细]
2023-03-12 05:16 分类:问答Is it undefined behaviour to delete a null void* pointer?
I know that deleteing a null pointer is a no-op: In either alternative, if the value of the operand of delete is the null pointer the operation has no effect.[详细]
2023-03-09 17:01 分类:问答void pointer conditional raising segfault
I\'m using a double-linked list and getting some odd performance regarding edge cases when we\'re dealing with previous or next pointers that are null. GDB returns the following error:[详细]
2023-03-09 06:59 分类:问答Pointer, Class and void* in C++
I get a code for Fibonacci Heap. This code uses the follow function to compare two keys: int cmp(void *x, void *y)[详细]
2023-03-07 01:10 分类:问答