A function to write several digital outputs at once (C++ level)

Hello
Yes, I think it could be useful.
What would be needed to make a smart proposal?

Many thanks