Top "Memcpy" questions

memcpy() is a C standard library function used for copying a block of memory bytes from one place to another.

c++ memcpy return value

according to http://en.cppreference.com/w/cpp/string/byte/memcpy c++'s memcpy takes three parameters: destination, source and …

c++ memcpy
Go conversion between struct and byte array

I am writing a client - server application in Go. I want to perform C-like type casting in Go. E.…

struct casting go memcpy
Go- Copy all common fields between structs

I have a database that stores JSON, and a server that provides an external API to whereby through an HTTP …

json reflection go memcpy
Is memcpy() usually faster than strcpy()?

Is memcpy() usually faster than strcpy() (on most real platforms)? (I assume that size of the string is known.) If …

c performance x86 memcpy strcpy
Copy 2D array using memcpy?

So I want to copy the contents of a 2D array to another array of the exact same type. Here …

c++ arrays memcpy
C++ equivalent for memset on char*

I have this code char * oldname = new char[strlen(name) + 1]; memcpy(oldname,name,strlen(name) + 1); name = new char[strlen(oldname) + …

c++ memcpy memset
C++ memcpy to char* from c_str

I've done a bit of basic reading and from what I've gathered .c_str() always has a null terminator. I …

c++ string char memcpy
When __builtin_memcpy is replaced with libc's memcpy

There is a version of C99/posix memcpy function in GCC: __builtin_memcpy. Sometimes it can be replaced by GCC …

gcc c99 memcpy built-in
Enhanced REP MOVSB for memcpy

I would like to use enhanced REP MOVSB (ERMSB) to get a high bandwidth for a custom memcpy. ERMSB was …

c gcc assembly x86 memcpy
Put bytes from unsigned char array to std::string using memcpy() function

I have std::string variable. And I need to put some bytes from array of unsigned chars to it. I …

c++ stl memcpy unsigned-char