I want to copy a float value to an allocated block of memory, with an offset from the memory block pointer.
How do I do this?Code:void Bank::PokeFloat(const int& pos, const float& n) { if (pos<0) return; if (pos+4>size) return; memcpy(buf+pos,&n,4); }