Support buffer in/out
Merge pull request #76 from ragingwind/buffer

Support buffer in/out