void-pointers
void* alternative in C#
I am making a class that calls a callback function and I want it to pass some data in some cases but that data may vary. In C++ I would use void* but in C# it\'s unsafe and it means it might get GCed.[详细]
2023-03-06 04:31 分类:问答Void pointer to access structs in char array
I have a buffer, essentially an char array, filled with multiple different structs. The structs needs to be passed in a buffer like this because it is something I read/write to a socket. The structs a[详细]
2023-03-01 16:46 分类:问答Will delete[] with void* cause memory leak? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Is it safe to delete a void pointer?[详细]
2023-03-01 02:50 分类:问答array of type void
plain C have nice feature - void type pointers, which can be used as pointer to any data ty开发者_Python百科pe.[详细]
2023-02-28 10:54 分类:问答Is this an appropriate use of void pointers?
This question is about the appropriateness of using void pointers in a particular implementation. I have a relatively simple program that consists of an infinite loop.On each loop, the program iterat[详细]
2023-02-24 21:09 分类:问答C++ - Casting void pointer
Does C++ throw runtime exceptions when you try to cast a void* to something that it isn\'t? class Sheep[详细]
2023-02-24 00:40 分类:问答How do you add to an AudioBufferList with an AVAssetReader?
I have been working on reading in an audio asset using AVAssetReader so that I can later play back the audio with an AUGraph with an AudioUnit callback. I have the AUGraph and AudioUnit callback worki[详细]
2023-02-23 04:55 分类:问答Get an array via function-param
I have an array declared as Object array[N]; and a function as void GetArray(void** array, size_t count)[详细]
2023-02-23 00:46 分类:问答Passing a structure which includes another structure to pthread_create
So I\'m attempting to pass a structure with several variables, including another structure dealing with bitmap information. However, my code fails somewhere, as it spits out the error \"dereferencing[详细]
2023-02-19 00:56 分类:问答dereferencing structure from (void *) type
i\'m trying to pass data with void pointer and then cast it to (pData *) type. What am i doing wrong? gcc gives me[详细]
2023-02-19 00:27 分类:问答
加载中,请稍侯......