memcpy
C++ equivalent for memset on char*
开发者_如何学运维I have this code char * oldname = new char[strlen(name) + 1]; memcpy(oldname,name,strlen(name) + 1);[详细]
2022-12-18 10:37 分类:问答trying to copy a char pointer using memcpy, getting an error
so I want to copy a char pointer, asked a friend and he said to use memcpy... so I am trying to do this:[详细]
2022-12-16 16:49 分类:问答What makes Apple's PowerPC memcpy so fast?
I\'ve written several copy functions in search of a good memory strategy on PowerPC.开发者_如何学Go Using the Altivec or fp registers with cache hints (dcb*) doubles the performance over a simple byte[详细]
2022-12-15 10:37 分类:问答Does "&s[0]" point to contiguous characters in a std::string?
I\'m doing some maintenance work and ran a开发者_运维百科cross something like the following: std::string s;[详细]
2022-12-15 08:59 分类:问答c++ std::pair, std::vector & memcopy
is it safe to memcopy myvect.size()*sizeof(foo) bytes from the memoryadress of the f开发者_如何学Goirst element of a[详细]
2022-12-15 08:24 分类:问答Help with a copy between buffers using memcpy C
I need to copy the content of one buffer to another one in blocks of n bytes (n might vary), several times to check the cache performance.[详细]
2022-12-13 23:57 分类:问答How to copy a char[] in c into my struct
I am trying to send my struct over a UDP socket. struct Packet { int seqnum; char data[BUFFERSIZE]; }; So on the sender I have[详细]
2022-12-13 20:43 分类:问答How is each byte in an integer stored in CPU / memory?
i have tried this 开发者_JAVA技巧char c[4]; int i=89; memcpy(&c[0],&i,4); cout<<(int)c[0]<<endl;[详细]
2022-12-13 16:23 分类:问答CUDA host to device (or device to host) memcpy operations with application rendering graphics using OpenGL on the same graphics card
I have posted my problem in the CUDA forums, but not sure if it\'s appropriate to post a link here for more ideas in case there are significant number of d开发者_如何学运维ifferent audiences between t[详细]
2022-12-11 07:13 分类:问答