added reinterpret_cast for void* buffers