Add ensureBuffer helper for nodes.
Merge pull request #400 from hindessm/add-ensure-buffer-helper

Add ensureBuffer helper for nodes.