Add support for externally allocated memory buffer.
Merge branch 'master' of github.com:topiolli/into