TEventContainer::FlipBufferIfRequired

Flips the buffer if the buffer type is double or triple