More buffer utils
Forgot to add generated cpp
Merge pull request #1136 from xoppa/various

More buffer utils