Added as_buffer
Merge pull request #20 from bvssvni/master

Added as_buffer