char* memoryPool = new char[64 * 1024];
int i = 10;
memcpy(memporyPool + writeFrom, (char*)(&i), sizeof(i));
std::vector<char> memoryPool(64 * 1024);
int i = 10;
char* ibytes = static_cast<char*>(&i);
std::copy(ibytes, ibytes + sizeof(i), memoryPool.begin() + writeFrom);