memcpy
memcpy of a part of a struct
I have a struct/class which is partiall Plain Old Data (POD). struct S { // plain-old-data structs with only arrays and members of basic types (no pointers);[详细]
2023-02-16 16:13 分类:问答Is it guaranteed to be safe to perform memcpy(0,0,0)?
I am not so well-versed in the C standard, so please bear with me. I would like to know if it is guaranteed, by the standard, that memcpy(0,0,0) is safe.[详细]
2023-02-15 21:37 分类:问答Copying data using memcpy
I am doing a memcpy of clsf_ptr to upclsf 开发者_C百科 memcpy(&upclsf, &clsf_ptr, sizeof(struct classifier));[详细]
2023-02-11 00:39 分类:问答memcopy and 2d arrays
struct item_CHECK_LIST_data { charlist[MAX_CHECK_LIST_OPTIONS + 1][MAX_ITEM_TEXT_LEN]; charcheckeditems[MAX_CHECK_LIST_OPTIONS + 1];//which are checked[详细]
2023-02-09 08:13 分类:问答C structure assignment of same address valid?
If I have something like this in my code: void f(struct foo *x, struct foo *y) { *x = *y; // structure copy (memcpy?)[详细]
2023-02-05 17:14 分类:问答memcpy() safety on adjacent memory regions
I recently asked a question on using volatile and was directed to read some very informative articles from Intel and others discussing memory barriers and their uses.After reading these articles I hav[详细]
2023-02-05 05:40 分类:问答How to treat alpha transparency from PNG directly in memory?
I would appreciate the help of you low level programmers... My problem is this: I want to print a bitmap of format ARGB8888 directly into video memory. The form of the bitmap is alright, the problem i[详细]
2023-02-04 15:22 分类:问答Reading different data types in shared memory
I want to share some memory between different processes running a DLL. Therefore i create a memory-mapped-file by HANDLE hSharedFile = CreateFileMapping(...) then LPBYTE hSharedView = MapViewOfFile(..[详细]
2023-02-03 01:58 分类:问答Linux Device Driver: Symbol "memcpy" not found
I\'m trying to write a Linux device driver. I\'ve got it to work really well, until I tried to use \"memcpy\". I don\'t even get a compiler error, when I \"make\" it just warns me:[详细]
2023-02-01 18:28 分类:问答How to use Memcpy() function
I want to use the memcpy in the end, instead of block_orig_left[i1][j1]=block_orig[i1][j1]; pred_orig_left [i1][j1]=block_pred[i1][j1];[详细]
2023-02-01 00:57 分类:问答