use reinterpret_cast< const char * > to write const variables